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.0009435/0.0009439, allocations: 95.7 kB / 16.94 MB, free: 5.98 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.001053/0.001053, allocations: 183.6 kB / 17.83 MB, free: 5.648 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.475/1.475, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004752/0.0004754, allocations: 15.28 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 47.58 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.00312/0.1116, allocations: 2.12 MB / 330.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.1128, allocations: 0.687 MB / 331.2 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.113, allocations: 4 kB / 331.2 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.879e-05/0.1131, allocations: 27.77 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.1133, allocations: 91.73 kB / 331.4 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.1136, allocations: 59.92 kB / 331.4 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000294/0.1139, allocations: 207.5 kB / 331.6 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.1141, allocations: 69.08 kB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.1143, allocations: 107.5 kB / 331.8 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.1145, allocations: 127.5 kB / 331.9 MB, free: 488 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.569e-05/0.1145, allocations: 12 kB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.238e-05/0.1146, allocations: 16 kB / 331.9 MB, free: 460 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.683e-05/0.1147, allocations: 43.81 kB / 332 MB, free: 416 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.06e-05/0.1147, allocations: 69.58 kB / 332.1 MB, free: 340 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.1151, allocations: 215.6 kB / 332.3 MB, free: 124 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1151, allocations: 0 / 332.3 MB, free: 124 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1151, allocations: 0 / 332.3 MB, free: 124 kB / 270.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1151, allocations: 4 kB / 332.3 MB, free: 120 kB / 270.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.001192/0.1163, allocations: 0.5947 MB / 332.9 MB, free: 15.46 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.1164, allocations: 8.031 kB / 332.9 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.44e-05/0.1164, allocations: 54.55 kB / 332.9 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.001e-05/0.1165, allocations: 23.72 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00032/0.1168, allocations: 270.2 kB / 333.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.1169, allocations: 16.38 kB / 333.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.1169, allocations: 16 kB / 333.2 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005793/0.1175, allocations: 244.5 kB / 333.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1175, allocations: 0 / 333.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.1175, allocations: 4 kB / 333.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.1175, allocations: 8 kB / 333.5 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007405/0.1183, allocations: 283.5 kB / 333.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.1198, allocations: 0.8521 MB / 334.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008934/0.1207, allocations: 270.5 kB / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.1208, allocations: 4 kB / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000547/0.1213, allocations: 181 kB / 335.1 MB, free: 13.11 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.223e-06/0.1214, allocations: 0 / 335.1 MB, free: 13.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.001041/0.1224, allocations: 333.2 kB / 335.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.1225, allocations: 77.11 kB / 335.5 MB, free: 12.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002914/0.1228, allocations: 240.9 kB / 335.7 MB, free: 12.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.1228, allocations: 33.7 kB / 335.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.123, allocations: 163.9 kB / 335.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.433e-05/0.1231, allocations: 47.44 kB / 335.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.373e-05/0.1231, allocations: 4 kB / 336 MB, free: 12.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1233, allocations: 330.8 kB / 336.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000331/0.1236, allocations: 104.1 kB / 336.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003561/0.124, allocations: 159.2 kB / 336.5 MB, free: 11.56 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003409/0.1243, allocations: 137.6 kB / 336.7 MB, free: 11.42 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.1244, allocations: 0 / 336.7 MB, free: 11.42 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007455/0.1251, allocations: 338.1 kB / 337 MB, free: 11.08 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003682/0.1255, allocations: 0.649 MB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1255, allocations: 0 / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.1255, allocations: 4 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.1258, allocations: 67.89 kB / 337.7 MB, free: 10.31 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1258, allocations: 0 / 337.7 MB, free: 10.31 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.1261, allocations: 51.81 kB / 337.8 MB, free: 10.26 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.1261, allocations: 8 kB / 337.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.948e-06/0.1262, allocations: 4 kB / 337.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006129/0.1268, allocations: 281.2 kB / 338.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-06/0.1268, allocations: 4.188 kB / 338.1 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.569e-06/0.1268, allocations: 4.219 kB / 338.1 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.127, allocations: 55.91 kB / 338.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.127, allocations: 15.88 kB / 338.1 MB, free: 9.887 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.1273, allocations: 35.89 kB / 338.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.1273, allocations: 11.98 kB / 338.2 MB, free: 9.84 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.0001664/0.1275, allocations: 213 kB / 338.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.041e-05/0.1275, allocations: 19.81 kB / 338.4 MB, free: 9.602 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.757e-05/0.1276, allocations: 29.83 kB / 338.4 MB, free: 9.574 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.1276, allocations: 0 / 338.4 MB, free: 9.574 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.1276, allocations: 3.953 kB / 338.4 MB, free: 9.57 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1276, allocations: 0 / 338.4 MB, free: 9.57 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002888/0.1279, allocations: 277.4 kB / 338.7 MB, free: 9.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1279, allocations: 4 kB / 338.7 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.1281, allocations: 51.95 kB / 338.8 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1281, allocations: 0 / 338.8 MB, free: 9.195 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.1282, allocations: 4 kB / 338.8 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1282, allocations: 0 / 338.8 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1282, allocations: 0 / 338.8 MB, free: 9.191 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.1292, allocations: 392.6 kB / 339.2 MB, free: 8.789 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.993e-05/0.1293, allocations: 104.8 kB / 339.3 MB, free: 8.668 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/0.1294, allocations: 0 / 339.3 MB, free: 8.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.1296, allocations: 40.03 kB / 339.3 MB, free: 8.629 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.35e-05/0.1297, allocations: 19.97 kB / 339.3 MB, free: 8.609 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.1297, allocations: 4 kB / 339.3 MB, free: 8.605 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002143/0.1299, allocations: 172.5 kB / 339.5 MB, free: 8.438 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1299, allocations: 0 / 339.5 MB, free: 8.438 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.1303, allocations: 103.6 kB / 339.6 MB, free: 8.336 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.001279/0.1316, allocations: 0.9252 MB / 340.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1326, allocations: 470.6 kB / 341 MB, free: 6.902 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1327, allocations: 0 / 341 MB, free: 6.902 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003135/0.133, allocations: 116.2 kB / 341.1 MB, free: 6.789 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.1333, allocations: 36.41 kB / 341.1 MB, free: 6.754 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003433/0.1367, allocations: 2.454 MB / 343.6 MB, free: 4.223 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005077/0.1373, allocations: 0.7443 MB / 344.3 MB, free: 3.453 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001644/0.1375, allocations: 25.94 kB / 344.3 MB, free: 3.43 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/0.1376, allocations: 75.41 kB / 344.4 MB, free: 3.355 MB / 286.1 MB Notification: Performance of SimCode: time 2.224e-06/0.1376, allocations: 0 / 344.4 MB, free: 3.355 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01933/0.157, allocations: 4.626 MB / 349 MB, free: 14.73 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002646/0.1573, allocations: 195.6 kB / 349.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.832/1.99, allocations: 0 / 349.2 MB, free: 14.49 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