Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",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.001136/0.001136, allocations: 88.16 kB / 16.31 MB, free: 5.648 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.001167/0.001168, allocations: 176.1 kB / 17.2 MB, free: 5.566 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.507/1.507, allocations: 223.3 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.000359, allocations: 10.17 kB / 300.9 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1431, allocations: 50.42 MB / 351.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.004247/0.1474, allocations: 2.428 MB / 353.8 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.1491, allocations: 0.686 MB / 354.5 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002553/0.1494, allocations: 4 kB / 354.5 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.1496, allocations: 35.69 kB / 354.5 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002977/0.1499, allocations: 79.38 kB / 354.6 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003756/0.1503, allocations: 71.88 kB / 354.7 MB, free: 8.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005673/0.1509, allocations: 350.5 kB / 355 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.1511, allocations: 89.8 kB / 355.1 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003127/0.1515, allocations: 123.5 kB / 355.2 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.1518, allocations: 139.4 kB / 355.3 MB, free: 7.598 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.492e-05/0.1519, allocations: 16 kB / 355.4 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.927e-05/0.1519, allocations: 16 kB / 355.4 MB, free: 7.566 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.541e-05/0.152, allocations: 55.75 kB / 355.4 MB, free: 7.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.1521, allocations: 81.58 kB / 355.5 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.1526, allocations: 323 kB / 355.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1526, allocations: 0 / 355.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1526, allocations: 0 / 355.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.1526, allocations: 0 / 355.8 MB, free: 7.109 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001645/0.1543, allocations: 0.6301 MB / 356.4 MB, free: 6.422 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.1543, allocations: 11.97 kB / 356.5 MB, free: 6.41 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.1545, allocations: 58.55 kB / 356.5 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.1546, allocations: 35.66 kB / 356.6 MB, free: 6.309 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005055/0.1551, allocations: 279.5 kB / 356.8 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.1551, allocations: 20.55 kB / 356.8 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.4e-05/0.1552, allocations: 24 kB / 356.9 MB, free: 5.949 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.1563, allocations: 335.5 kB / 357.2 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.1563, allocations: 0 / 357.2 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.1564, allocations: 12 kB / 357.2 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.1564, allocations: 4 kB / 357.2 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.1577, allocations: 302.1 kB / 357.5 MB, free: 5.301 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002724/0.1604, allocations: 1.146 MB / 358.7 MB, free: 4.074 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.1617, allocations: 282.5 kB / 358.9 MB, free: 3.789 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005098/0.1622, allocations: 116.8 kB / 359 MB, free: 3.672 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.1623, allocations: 0 / 359 MB, free: 3.672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006916/0.163, allocations: 184.9 kB / 359.2 MB, free: 3.473 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 4.809e-06/0.163, allocations: 0 / 359.2 MB, free: 3.473 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.00159/0.1646, allocations: 357.2 kB / 359.6 MB, free: 3.117 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/0.1647, allocations: 85.11 kB / 359.7 MB, free: 3.016 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004352/0.1652, allocations: 266.5 kB / 359.9 MB, free: 2.75 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.1652, allocations: 33.7 kB / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.1654, allocations: 187.6 kB / 360.1 MB, free: 2.523 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.53e-05/0.1655, allocations: 43.44 kB / 360.2 MB, free: 2.48 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.39e-05/0.1655, allocations: 8 kB / 360.2 MB, free: 2.473 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1657, allocations: 326.8 kB / 360.5 MB, free: 2.145 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005254/0.1662, allocations: 124.1 kB / 360.6 MB, free: 2.02 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005679/0.1668, allocations: 214.8 kB / 360.8 MB, free: 1.773 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005669/0.1674, allocations: 153.6 kB / 361 MB, free: 1.617 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.1674, allocations: 4 kB / 361 MB, free: 1.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001326/0.1688, allocations: 386.9 kB / 361.4 MB, free: 1.223 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.742e-05/0.1688, allocations: 39.36 kB / 361.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.1688, allocations: 8.156 kB / 361.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.1689, allocations: 4 kB / 361.4 MB, free: 1.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004469/0.1693, allocations: 71.89 kB / 361.5 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.1694, allocations: 7.984 kB / 361.5 MB, free: 1.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004858/0.1699, allocations: 63.73 kB / 361.6 MB, free: 1.027 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.1699, allocations: 8 kB / 361.6 MB, free: 1.02 MB / 286.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 (26): * Single equations (assignments): 25 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002298/0.1702, allocations: 152 kB / 361.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.281e-05/0.1702, allocations: 27.7 kB / 361.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.846e-05/0.1703, allocations: 21.7 kB / 361.8 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.174e-06/0.1703, allocations: 4 kB / 361.8 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.1703, allocations: 4 kB / 361.8 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.1704, allocations: 7.938 kB / 361.8 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004698/0.1708, allocations: 317.3 kB / 362.1 MB, free: 448 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.1709, allocations: 3.953 kB / 362.1 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003709/0.1712, allocations: 47.95 kB / 362.1 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1713, allocations: 0 / 362.1 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.1713, allocations: 8 kB / 362.1 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.1713, allocations: 4 kB / 362.1 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1713, allocations: 0 / 362.1 MB, free: 384 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.1729, allocations: 404.7 kB / 362.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.1731, allocations: 100.8 kB / 362.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.473e-05/0.1731, allocations: 7.984 kB / 362.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.1735, allocations: 43.97 kB / 362.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.1736, allocations: 19.97 kB / 362.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.1737, allocations: 0 / 362.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002916/0.174, allocations: 186 kB / 362.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.174, allocations: 0 / 362.9 MB, free: 15.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005587/0.1745, allocations: 63.84 kB / 363 MB, free: 15.53 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * 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 (12): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002011/0.1766, allocations: 0.9479 MB / 363.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.1777, allocations: 323.2 kB / 364.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.1778, allocations: 4 kB / 364.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.1782, allocations: 117.1 kB / 364.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.1786, allocations: 43.11 kB / 364.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.1819, allocations: 1.714 MB / 366.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.1822, allocations: 0.7482 MB / 366.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001387/0.1824, allocations: 30.27 kB / 366.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.1825, allocations: 79.62 kB / 366.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1825, allocations: 4 kB / 367 MB, free: 11.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01869/0.2012, allocations: 4.897 MB / 371.8 MB, free: 6.652 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.2014, allocations: 202.5 kB / 372 MB, free: 6.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.035/2.237, allocations: 4 kB / 372.1 MB, free: 6.406 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat