Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_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_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.001279/0.001279, allocations: 100.3 kB / 16.96 MB, free: 6.098 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.001263/0.001262, allocations: 179 kB / 17.84 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.833/1.833, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005257/0.0005259, allocations: 16 kB / 280.9 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.104, allocations: 47.58 MB / 328.5 MB, free: 3.949 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.002959/0.107, allocations: 2.201 MB / 330.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.1085, allocations: 0.6752 MB / 331.3 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.1087, allocations: 0 / 331.3 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00016/0.1089, allocations: 27.77 kB / 331.4 MB, free: 1.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.1091, allocations: 71.47 kB / 331.4 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.1095, allocations: 63.91 kB / 331.5 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000391/0.1099, allocations: 290.8 kB / 331.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.1101, allocations: 65.08 kB / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002516/0.1103, allocations: 107.6 kB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.1105, allocations: 123.4 kB / 332.1 MB, free: 324 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.182e-05/0.1106, allocations: 16 kB / 332.1 MB, free: 308 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.83e-05/0.1107, allocations: 20 kB / 332.1 MB, free: 288 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.246e-05/0.1107, allocations: 43.77 kB / 332.2 MB, free: 244 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.148e-05/0.1108, allocations: 65.58 kB / 332.2 MB, free: 172 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002455/0.1111, allocations: 219.6 kB / 332.4 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1111, allocations: 4 kB / 332.4 MB, free: 15.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.1111, allocations: 0 / 332.4 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.1111, allocations: 0 / 332.4 MB, free: 15.95 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.001338/0.1125, allocations: 0.5908 MB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.1125, allocations: 16.03 kB / 333 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.583e-05/0.1126, allocations: 46.55 kB / 333.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.71e-05/0.1127, allocations: 31.72 kB / 333.1 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/0.1131, allocations: 266.1 kB / 333.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.1131, allocations: 16.38 kB / 333.4 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.776e-05/0.1132, allocations: 19.98 kB / 333.4 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006012/0.1138, allocations: 248.5 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1138, allocations: 0 / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.1139, allocations: 4 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.046e-06/0.1139, allocations: 4 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007249/0.1146, allocations: 279.6 kB / 333.9 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.1161, allocations: 0.8443 MB / 334.8 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000784/0.1169, allocations: 274.5 kB / 335.1 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002828/0.1172, allocations: 108.8 kB / 335.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.1172, allocations: 0 / 335.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000471/0.1177, allocations: 192.9 kB / 335.3 MB, free: 12.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.083e-06/0.1177, allocations: 4 kB / 335.4 MB, free: 12.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009338/0.1187, allocations: 333.2 kB / 335.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.796e-05/0.1188, allocations: 81.09 kB / 335.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002721/0.119, allocations: 236.9 kB / 336 MB, free: 12.14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.1191, allocations: 29.7 kB / 336 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.1192, allocations: 163.9 kB / 336.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.242e-05/0.1193, allocations: 43.45 kB / 336.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.251e-05/0.1193, allocations: 4 kB / 336.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1194, allocations: 334.8 kB / 336.6 MB, free: 11.56 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.1197, allocations: 104 kB / 336.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.1201, allocations: 163.1 kB / 336.8 MB, free: 11.28 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.1204, allocations: 133.7 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1204, allocations: 0 / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007339/0.1212, allocations: 343 kB / 337.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.1213, allocations: 167.8 kB / 337.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1213, allocations: 0 / 337.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.1213, allocations: 4 kB / 337.4 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.1216, allocations: 63.95 kB / 337.5 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.1216, allocations: 3.984 kB / 337.5 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.1219, allocations: 51.81 kB / 337.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.1219, allocations: 8 kB / 337.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.776e-06/0.1219, allocations: 11.06 kB / 337.6 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005974/0.1225, allocations: 285.4 kB / 337.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.1226, allocations: 0 / 337.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.272e-06/0.1226, allocations: 4 kB / 337.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.1228, allocations: 59.89 kB / 337.9 MB, free: 10.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1228, allocations: 7.953 kB / 337.9 MB, free: 10.11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.123, allocations: 39.91 kB / 338 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.1231, allocations: 8 kB / 338 MB, free: 10.06 MB / 286.1 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.0002023/0.1233, allocations: 213 kB / 338.2 MB, free: 9.84 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/0.1233, allocations: 15.81 kB / 338.2 MB, free: 9.824 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.103e-05/0.1234, allocations: 25.83 kB / 338.2 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.1234, allocations: 4 kB / 338.2 MB, free: 9.797 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1234, allocations: 3.953 kB / 338.2 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1234, allocations: 0 / 338.2 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002962/0.1237, allocations: 285.4 kB / 338.5 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1237, allocations: 0 / 338.5 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.124, allocations: 51.95 kB / 338.6 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.124, allocations: 0 / 338.6 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.124, allocations: 4 kB / 338.6 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.124, allocations: 0 / 338.6 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.124, allocations: 3.938 kB / 338.6 MB, free: 9.406 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009179/0.1249, allocations: 396.6 kB / 339 MB, free: 9 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.76e-05/0.125, allocations: 100.8 kB / 339.1 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.094e-05/0.1251, allocations: 0 / 339.1 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.1253, allocations: 47.95 kB / 339.1 MB, free: 8.836 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.131e-05/0.1254, allocations: 15.98 kB / 339.1 MB, free: 8.82 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.1254, allocations: 7.984 kB / 339.1 MB, free: 8.812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001595/0.1256, allocations: 164.5 kB / 339.3 MB, free: 8.652 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1256, allocations: 0 / 339.3 MB, free: 8.652 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004133/0.126, allocations: 107.7 kB / 339.4 MB, free: 8.547 MB / 286.1 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.001256/0.1273, allocations: 0.9174 MB / 340.3 MB, free: 7.602 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.1283, allocations: 475 kB / 340.8 MB, free: 7.113 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1283, allocations: 0 / 340.8 MB, free: 7.113 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002916/0.1286, allocations: 112.2 kB / 340.9 MB, free: 7.004 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.129, allocations: 44.39 kB / 340.9 MB, free: 6.961 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.1319, allocations: 1.536 MB / 342.5 MB, free: 5.355 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1323, allocations: 0.7365 MB / 343.2 MB, free: 4.594 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001766/0.1325, allocations: 29.94 kB / 343.2 MB, free: 4.566 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.1326, allocations: 67.41 kB / 343.3 MB, free: 4.5 MB / 286.1 MB Notification: Performance of SimCode: time 1.232e-06/0.1326, allocations: 0 / 343.3 MB, free: 4.5 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.1544, allocations: 4.653 MB / 347.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002642/0.1548, allocations: 189 kB / 348.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.15/2.305, allocations: 4 kB / 348.1 MB, free: 15.62 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat does not exist to compare? outputFormat=mat