Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 91.02 kB / 16.31 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 179.3 kB / 17.21 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 223.3 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002885, allocations: 7.062 kB / 300.9 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1193, allocations: 50.43 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.003343/0.1227, allocations: 2.495 MB / 353.8 MB, free: 9.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.124, allocations: 0.7016 MB / 354.5 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001582/0.1242, allocations: 4 kB / 354.5 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.1243, allocations: 31.7 kB / 354.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.1246, allocations: 87.36 kB / 354.7 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.1249, allocations: 59.92 kB / 354.7 MB, free: 8.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003972/0.1253, allocations: 374.5 kB / 355.1 MB, free: 7.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/0.1256, allocations: 97.8 kB / 355.2 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.1257, allocations: 123.4 kB / 355.3 MB, free: 7.609 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.1259, allocations: 139.4 kB / 355.4 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.508e-05/0.126, allocations: 16 kB / 355.5 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.586e-05/0.126, allocations: 20 kB / 355.5 MB, free: 7.438 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.537e-05/0.1261, allocations: 55.75 kB / 355.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.313e-05/0.1262, allocations: 81.52 kB / 355.6 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003481/0.1266, allocations: 358.9 kB / 356 MB, free: 6.945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1266, allocations: 0 / 356 MB, free: 6.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1266, allocations: 0 / 356 MB, free: 6.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1266, allocations: 0 / 356 MB, free: 6.945 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001191/0.1278, allocations: 0.6418 MB / 356.6 MB, free: 6.246 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.1279, allocations: 8.031 kB / 356.6 MB, free: 6.238 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.721e-05/0.1279, allocations: 62.53 kB / 356.7 MB, free: 6.168 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.003e-05/0.128, allocations: 35.62 kB / 356.7 MB, free: 6.133 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.1284, allocations: 290.4 kB / 357 MB, free: 5.809 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.1284, allocations: 28.55 kB / 357 MB, free: 5.781 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.921e-05/0.1285, allocations: 24 kB / 357 MB, free: 5.758 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007412/0.1292, allocations: 339.6 kB / 357.4 MB, free: 5.418 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.1293, allocations: 3.953 kB / 357.4 MB, free: 5.414 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.1293, allocations: 12 kB / 357.4 MB, free: 5.402 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.1293, allocations: 4 kB / 357.4 MB, free: 5.398 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007791/0.1301, allocations: 314 kB / 357.7 MB, free: 5.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.1321, allocations: 1.185 MB / 358.9 MB, free: 3.824 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008105/0.1329, allocations: 282.6 kB / 359.2 MB, free: 3.539 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000381/0.1333, allocations: 120.9 kB / 359.3 MB, free: 3.418 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.1334, allocations: 7.938 kB / 359.3 MB, free: 3.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005249/0.1339, allocations: 205.2 kB / 359.5 MB, free: 3.191 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.725e-06/0.1339, allocations: 0 / 359.5 MB, free: 3.191 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002306/0.1362, allocations: 0.7332 MB / 360.2 MB, free: 2.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/0.1363, allocations: 106.8 kB / 360.3 MB, free: 2.301 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003195/0.1366, allocations: 274.7 kB / 360.6 MB, free: 2.023 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.1367, allocations: 29.7 kB / 360.6 MB, free: 1.988 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.1368, allocations: 203.5 kB / 360.8 MB, free: 1.785 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.1369, allocations: 43.44 kB / 360.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.1369, allocations: 8 kB / 360.9 MB, free: 1.734 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.137, allocations: 334.8 kB / 361.2 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.1374, allocations: 120.4 kB / 361.3 MB, free: 1.277 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004318/0.1379, allocations: 224.8 kB / 361.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.1382, allocations: 164.2 kB / 361.7 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1382, allocations: 0 / 361.7 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001341/0.1396, allocations: 0.5034 MB / 362.2 MB, free: 340 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.528e-05/0.1396, allocations: 33.7 kB / 362.2 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.1397, allocations: 0 / 362.2 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00052/0.1402, allocations: 92.86 kB / 362.3 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.1404, allocations: 51.91 kB / 362.4 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002637/0.1431, allocations: 1.827 MB / 364.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/0.1434, allocations: 71.7 kB / 364.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.774e-05/0.1435, allocations: 12 kB / 364.3 MB, free: 14.11 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.1437, allocations: 145.7 kB / 364.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.1437, allocations: 23.72 kB / 364.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.859e-05/0.1438, allocations: 25.83 kB / 364.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.1438, allocations: 8 kB / 364.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1438, allocations: 0 / 364.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1438, allocations: 0 / 364.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003366/0.1441, allocations: 333.3 kB / 364.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1441, allocations: 0 / 364.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.1443, allocations: 23.98 kB / 364.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000285/0.1446, allocations: 88.73 kB / 364.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.1446, allocations: 8 kB / 364.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002131/0.1468, allocations: 1.702 MB / 366.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.1468, allocations: 7.969 kB / 366.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.1478, allocations: 405.4 kB / 367 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.01e-05/0.1479, allocations: 100.8 kB / 367.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.148, allocations: 8 kB / 367.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.1482, allocations: 47.91 kB / 367.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.097e-05/0.1483, allocations: 27.91 kB / 367.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.1483, allocations: 7.938 kB / 367.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002031/0.1485, allocations: 194 kB / 367.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1485, allocations: 4 kB / 367.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004143/0.149, allocations: 75.84 kB / 367.5 MB, free: 10.67 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001453/0.1504, allocations: 0.9466 MB / 368.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.1515, allocations: 453.8 kB / 368.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1515, allocations: 0 / 368.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004764/0.152, allocations: 259.1 kB / 369.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.1524, allocations: 50.12 kB / 369.2 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003584/0.156, allocations: 1.795 MB / 371 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.1564, allocations: 0.756 MB / 371.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001451/0.1565, allocations: 30.28 kB / 371.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.1567, allocations: 75.41 kB / 371.8 MB, free: 6.141 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1567, allocations: 4 kB / 371.8 MB, free: 6.137 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/0.1773, allocations: 6.111 MB / 377.9 MB, free: 256 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001679/0.1775, allocations: 230.4 kB / 378.2 MB, free: 8 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.265, allocations: 0 / 378.2 MB, free: 8 kB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat does not exist to compare? outputFormat=mat