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.001303/0.001303, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.001566/0.001566, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.727/1.727, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003025/0.0003027, allocations: 7.969 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1202, allocations: 50.42 MB / 351.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.003447/0.1237, allocations: 2.335 MB / 353.6 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.1252, allocations: 0.6979 MB / 354.3 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000294/0.1256, allocations: 7.938 kB / 354.3 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.973e-05/0.1257, allocations: 31.75 kB / 354.3 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003371/0.126, allocations: 103.7 kB / 354.4 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003336/0.1264, allocations: 67.86 kB / 354.5 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005302/0.1269, allocations: 247.5 kB / 354.7 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002641/0.1272, allocations: 85.81 kB / 354.8 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003072/0.1275, allocations: 123.5 kB / 354.9 MB, free: 7.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000248/0.1278, allocations: 135.4 kB / 355.1 MB, free: 7.727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.678e-05/0.1278, allocations: 16 kB / 355.1 MB, free: 7.711 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.519e-05/0.1279, allocations: 16 kB / 355.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.256e-05/0.1279, allocations: 59.75 kB / 355.1 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.604e-05/0.128, allocations: 77.58 kB / 355.2 MB, free: 7.555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003465/0.1284, allocations: 327 kB / 355.5 MB, free: 7.234 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.1284, allocations: 0 / 355.5 MB, free: 7.234 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1284, allocations: 0 / 355.5 MB, free: 7.234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.1284, allocations: 0 / 355.5 MB, free: 7.234 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.001475/0.1299, allocations: 0.634 MB / 356.2 MB, free: 6.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.13, allocations: 11.97 kB / 356.2 MB, free: 6.531 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.1301, allocations: 62.53 kB / 356.2 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.893e-05/0.1302, allocations: 31.62 kB / 356.3 MB, free: 6.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004198/0.1306, allocations: 279.5 kB / 356.5 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.1306, allocations: 20.56 kB / 356.6 MB, free: 6.094 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.104e-05/0.1307, allocations: 24 kB / 356.6 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/0.1315, allocations: 327.6 kB / 356.9 MB, free: 5.742 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1315, allocations: 0 / 356.9 MB, free: 5.742 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.1315, allocations: 8 kB / 356.9 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.1315, allocations: 4 kB / 356.9 MB, free: 5.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008847/0.1324, allocations: 310 kB / 357.2 MB, free: 5.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.1346, allocations: 1.15 MB / 358.4 MB, free: 4.195 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009561/0.1355, allocations: 278.6 kB / 358.6 MB, free: 3.914 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.1356, allocations: 3.938 kB / 358.7 MB, free: 3.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005404/0.1361, allocations: 181 kB / 358.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.452e-06/0.1361, allocations: 224 / 358.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001154/0.1373, allocations: 361.1 kB / 359.2 MB, free: 3.355 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.1374, allocations: 85.05 kB / 359.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/0.1377, allocations: 266.6 kB / 359.5 MB, free: 2.988 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.1378, allocations: 25.7 kB / 359.6 MB, free: 2.957 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1379, allocations: 191.6 kB / 359.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.138, allocations: 39.44 kB / 359.8 MB, free: 2.727 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.473e-05/0.138, allocations: 4 kB / 359.8 MB, free: 2.723 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.1382, allocations: 338.8 kB / 360.1 MB, free: 2.383 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.1385, allocations: 112.2 kB / 360.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004198/0.139, allocations: 211.5 kB / 360.4 MB, free: 2.023 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004093/0.1394, allocations: 163.8 kB / 360.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1394, allocations: 7.953 kB / 360.6 MB, free: 1.852 MB / 286.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001012/0.1404, allocations: 387 kB / 361 MB, free: 1.461 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.1405, allocations: 29.7 kB / 361 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1405, allocations: 7.938 kB / 361 MB, free: 1.418 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.1405, allocations: 7.984 kB / 361 MB, free: 1.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.1408, allocations: 71.89 kB / 361.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.1409, allocations: 7.984 kB / 361.1 MB, free: 1.332 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003607/0.1412, allocations: 63.72 kB / 361.2 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.388e-05/0.1413, allocations: 15.98 kB / 361.2 MB, free: 1.254 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.0001771/0.1415, allocations: 141.8 kB / 361.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.012e-05/0.1415, allocations: 19.77 kB / 361.3 MB, free: 1.086 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.954e-05/0.1416, allocations: 33.7 kB / 361.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1416, allocations: 0 / 361.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.1416, allocations: 4 kB / 361.4 MB, free: 1.047 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1416, allocations: 3.938 kB / 361.4 MB, free: 1.043 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003479/0.142, allocations: 309.3 kB / 361.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.142, allocations: 0 / 361.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002603/0.1423, allocations: 67.84 kB / 361.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1423, allocations: 0 / 361.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.1423, allocations: 0 / 361.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.1423, allocations: 3.984 kB / 361.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1423, allocations: 0 / 361.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.1435, allocations: 404.6 kB / 362.1 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.1436, allocations: 105 kB / 362.2 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.664e-05/0.1436, allocations: 7.953 kB / 362.2 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.1439, allocations: 35.95 kB / 362.3 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.621e-05/0.1439, allocations: 15.98 kB / 362.3 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.144, allocations: 7.984 kB / 362.3 MB, free: 20 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002399/0.1442, allocations: 190 kB / 362.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1442, allocations: 0 / 362.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003365/0.1446, allocations: 67.75 kB / 362.6 MB, free: 15.77 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.001626/0.1462, allocations: 0.9478 MB / 363.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008751/0.1471, allocations: 319.2 kB / 363.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1471, allocations: 0.5625 kB / 363.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003635/0.1475, allocations: 127.9 kB / 363.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.1478, allocations: 36.5 kB / 364 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004935/0.1527, allocations: 3.36 MB / 367.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006166/0.1534, allocations: 0.7638 MB / 368.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00019/0.1536, allocations: 26.28 kB / 368.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.1538, allocations: 79.41 kB / 368.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1538, allocations: 3.938 kB / 368.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/0.1754, allocations: 4.876 MB / 373.1 MB, free: 5.238 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002712/0.1758, allocations: 195.2 kB / 373.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.982/2.158, allocations: 0 / 373.3 MB, free: 4.996 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