Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003493/0.003493, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.159/2.159, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001196/0.001196, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004004/0.0004006, allocations: 12 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.003967/0.1075, allocations: 2.115 MB / 376.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.1095, allocations: 0.687 MB / 377.5 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.1098, allocations: 7.938 kB / 377.5 MB, free: 12.49 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.927e-05/0.11, allocations: 19.83 kB / 377.5 MB, free: 12.47 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003443/0.1103, allocations: 95.67 kB / 377.6 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003803/0.1107, allocations: 63.92 kB / 377.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004614/0.1112, allocations: 203.6 kB / 377.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002387/0.1114, allocations: 69.06 kB / 377.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002833/0.1117, allocations: 115.5 kB / 378 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.112, allocations: 123.5 kB / 378.1 MB, free: 11.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.285e-05/0.1121, allocations: 12 kB / 378.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.3e-05/0.1121, allocations: 16 kB / 378.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.03e-05/0.1122, allocations: 43.81 kB / 378.2 MB, free: 11.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.994e-05/0.1123, allocations: 73.52 kB / 378.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.1127, allocations: 219.6 kB / 378.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1127, allocations: 0 / 378.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1127, allocations: 0 / 378.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.1128, allocations: 0 / 378.5 MB, free: 11.46 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001841/0.1146, allocations: 0.5947 MB / 379.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/0.1147, allocations: 12.03 kB / 379.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.1148, allocations: 50.55 kB / 379.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.138e-05/0.1149, allocations: 27.72 kB / 379.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000497/0.1154, allocations: 262.3 kB / 379.4 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.1155, allocations: 16.36 kB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.45e-05/0.1155, allocations: 16 kB / 379.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.1166, allocations: 248.5 kB / 379.7 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.1166, allocations: 0 / 379.7 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.1167, allocations: 8 kB / 379.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1167, allocations: 8 kB / 379.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.1182, allocations: 275.6 kB / 380 MB, free: 9.844 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002535/0.1208, allocations: 0.8521 MB / 380.8 MB, free: 8.922 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.1223, allocations: 270.5 kB / 381.1 MB, free: 8.648 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.1224, allocations: 4 kB / 381.1 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007693/0.1231, allocations: 185 kB / 381.3 MB, free: 8.445 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.906e-06/0.1232, allocations: 0 / 381.3 MB, free: 8.445 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.001752/0.1249, allocations: 333.2 kB / 381.6 MB, free: 8.113 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.244e-05/0.1251, allocations: 81.11 kB / 381.7 MB, free: 8.016 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000414/0.1255, allocations: 236.9 kB / 381.9 MB, free: 7.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.126e-05/0.1256, allocations: 33.7 kB / 382 MB, free: 7.73 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.1257, allocations: 222.4 kB / 382.2 MB, free: 7.512 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.122e-05/0.1258, allocations: 47.38 kB / 382.2 MB, free: 7.465 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.798e-05/0.1259, allocations: 0 / 382.2 MB, free: 7.465 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.126, allocations: 318.8 kB / 382.5 MB, free: 7.145 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005679/0.1266, allocations: 104.1 kB / 382.6 MB, free: 7.043 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006085/0.1272, allocations: 163.2 kB / 382.8 MB, free: 6.859 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005805/0.1278, allocations: 133.6 kB / 382.9 MB, free: 6.723 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.1278, allocations: 3.984 kB / 382.9 MB, free: 6.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001381/0.1292, allocations: 327.1 kB / 383.2 MB, free: 6.387 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003581/0.1296, allocations: 0.6431 MB / 383.9 MB, free: 5.691 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.1297, allocations: 3.984 kB / 383.9 MB, free: 5.688 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1297, allocations: 4 kB / 383.9 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00049/0.1302, allocations: 63.89 kB / 384 MB, free: 5.621 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.1302, allocations: 0 / 384 MB, free: 5.621 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.1307, allocations: 51.81 kB / 384 MB, free: 5.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.1308, allocations: 11.94 kB / 384 MB, free: 5.559 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.1308, allocations: 4 kB / 384 MB, free: 5.555 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001183/0.132, allocations: 281.5 kB / 384.3 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.132, allocations: 0 / 384.3 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.132, allocations: 4 kB / 384.3 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.1325, allocations: 48.19 kB / 384.4 MB, free: 5.223 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.1325, allocations: 15.88 kB / 384.4 MB, free: 5.207 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003589/0.1329, allocations: 43.8 kB / 384.4 MB, free: 5.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.1329, allocations: 8 kB / 384.4 MB, free: 5.156 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (22): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000275/0.1332, allocations: 213.8 kB / 384.6 MB, free: 4.938 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.748e-05/0.1333, allocations: 19.72 kB / 384.6 MB, free: 4.918 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.289e-05/0.1334, allocations: 21.84 kB / 384.7 MB, free: 4.898 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.1334, allocations: 3.984 kB / 384.7 MB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.1334, allocations: 7.953 kB / 384.7 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1334, allocations: 0 / 384.7 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004344/0.1339, allocations: 285.5 kB / 385 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1339, allocations: 7.922 kB / 385 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004376/0.1343, allocations: 47.95 kB / 385 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.1344, allocations: 0 / 385 MB, free: 4.504 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.1344, allocations: 8 kB / 385 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.1344, allocations: 0 / 385 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1344, allocations: 0 / 385 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.1362, allocations: 392.6 kB / 385.4 MB, free: 4.094 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.1363, allocations: 92.94 kB / 385.5 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.279e-05/0.1364, allocations: 8 kB / 385.5 MB, free: 3.977 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.1368, allocations: 32.03 kB / 385.5 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.1369, allocations: 23.91 kB / 385.6 MB, free: 3.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.137, allocations: 8 kB / 385.6 MB, free: 3.914 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003013/0.1373, allocations: 172.5 kB / 385.7 MB, free: 3.746 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1373, allocations: 0 / 385.7 MB, free: 3.746 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006178/0.1379, allocations: 99.64 kB / 385.8 MB, free: 3.648 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (13): * Single equations (assignments): 11 * 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.002147/0.1401, allocations: 0.9212 MB / 386.8 MB, free: 2.699 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001911/0.142, allocations: 478.8 kB / 387.2 MB, free: 2.211 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.1421, allocations: 0 / 387.2 MB, free: 2.211 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005692/0.1426, allocations: 112.2 kB / 387.3 MB, free: 2.102 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004408/0.1431, allocations: 40.3 kB / 387.4 MB, free: 2.062 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2631/0.4062, allocations: 2.469 MB / 389.8 MB, free: 20.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.4065, allocations: 0.7492 MB / 390.6 MB, free: 19.87 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002457/0.4067, allocations: 71.02 kB / 390.7 MB, free: 19.87 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4068, allocations: 0 / 390.7 MB, free: 19.87 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.505/2.912, allocations: 3.887 MB / 394.5 MB, free: 19.73 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat