Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.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: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 102.4 kB / 17.15 MB, free: 6.316 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.001431/0.001431, allocations: 190 kB / 18.07 MB, free: 5.414 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.687/1.687, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001111/0.001111, allocations: 55.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1086, allocations: 46.62 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003324/0.112, allocations: 1.722 MB / 328.3 MB, free: 3.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008927/0.1129, allocations: 0.5317 MB / 328.8 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.938e-05/0.113, allocations: 0 / 328.8 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.1132, allocations: 7.922 kB / 328.8 MB, free: 2.617 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.1134, allocations: 19.84 kB / 328.9 MB, free: 2.598 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001658/0.1136, allocations: 43.91 kB / 328.9 MB, free: 2.555 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.1137, allocations: 95.69 kB / 329 MB, free: 2.461 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.1139, allocations: 25.11 kB / 329 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.817e-05/0.114, allocations: 35.86 kB / 329.1 MB, free: 2.402 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.788e-05/0.1141, allocations: 47.7 kB / 329.1 MB, free: 2.355 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.382e-05/0.1141, allocations: 7.938 kB / 329.1 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.989e-05/0.1141, allocations: 4 kB / 329.1 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.361e-05/0.1142, allocations: 15.92 kB / 329.1 MB, free: 2.328 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.491e-05/0.1143, allocations: 47.73 kB / 329.2 MB, free: 2.281 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.1144, allocations: 83.92 kB / 329.3 MB, free: 2.199 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.1144, allocations: 0 / 329.3 MB, free: 2.199 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1144, allocations: 0 / 329.3 MB, free: 2.199 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.1144, allocations: 4 kB / 329.3 MB, free: 2.195 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005781/0.115, allocations: 403.1 kB / 329.7 MB, free: 1.754 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.115, allocations: 8.031 kB / 329.7 MB, free: 1.746 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.46e-05/0.1151, allocations: 12.75 kB / 329.7 MB, free: 1.734 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.1153, allocations: 208.7 kB / 329.9 MB, free: 1.492 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.1154, allocations: 4.375 kB / 329.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.446e-05/0.1154, allocations: 16.12 kB / 329.9 MB, free: 1.473 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/0.1156, allocations: 73.66 kB / 330 MB, free: 1.395 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1156, allocations: 0 / 330 MB, free: 1.395 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.1156, allocations: 4 kB / 330 MB, free: 1.391 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.1156, allocations: 0 / 330 MB, free: 1.391 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.1158, allocations: 43.91 kB / 330 MB, free: 1.348 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006237/0.1164, allocations: 415.8 kB / 330.4 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.1166, allocations: 66.53 kB / 330.5 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.958e-05/0.1167, allocations: 32.88 kB / 330.5 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.1167, allocations: 4 kB / 330.5 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.1167, allocations: 30.56 kB / 330.6 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.1167, allocations: 0 / 330.6 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003059/0.117, allocations: 101.5 kB / 330.7 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1171, allocations: 51.41 kB / 330.7 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.1172, allocations: 149.8 kB / 330.9 MB, free: 412 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.1172, allocations: 25.7 kB / 330.9 MB, free: 380 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.539e-05/0.1173, allocations: 112.1 kB / 331 MB, free: 264 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.258e-05/0.1173, allocations: 19.72 kB / 331 MB, free: 244 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-05/0.1174, allocations: 21.66 kB / 331 MB, free: 216 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1175, allocations: 322.8 kB / 331.3 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.924e-05/0.1176, allocations: 15.98 kB / 331.4 MB, free: 15.87 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.539e-05/0.1177, allocations: 23.98 kB / 331.4 MB, free: 15.85 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.1178, allocations: 52.97 kB / 331.4 MB, free: 15.79 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1178, allocations: 4 kB / 331.4 MB, free: 15.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001609/0.118, allocations: 89.47 kB / 331.5 MB, free: 15.7 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.118, allocations: 11.98 kB / 331.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.118, allocations: 0 / 331.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.118, allocations: 0 / 331.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.1182, allocations: 35.97 kB / 331.6 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1183, allocations: 0 / 331.6 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.1183, allocations: 11.94 kB / 331.6 MB, free: 15.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.1183, allocations: 0 / 331.6 MB, free: 15.64 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.679e-05/0.1184, allocations: 117.8 kB / 331.7 MB, free: 15.51 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.167e-05/0.1185, allocations: 11.84 kB / 331.7 MB, free: 15.5 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.922e-05/0.1185, allocations: 16.3 kB / 331.7 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1185, allocations: 0 / 331.7 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1185, allocations: 0 / 331.7 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1185, allocations: 0 / 331.7 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.1187, allocations: 193.6 kB / 331.9 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1187, allocations: 4 kB / 331.9 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.1189, allocations: 27.86 kB / 332 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.1189, allocations: 4 kB / 332 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.1189, allocations: 3.984 kB / 332 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.1189, allocations: 0 / 332 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1189, allocations: 0 / 332 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.1192, allocations: 203.6 kB / 332.2 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.1192, allocations: 92.97 kB / 332.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.08e-05/0.1193, allocations: 4 kB / 332.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.1194, allocations: 4.062 kB / 332.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.098e-05/0.1194, allocations: 11.92 kB / 332.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.1194, allocations: 0 / 332.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.966e-05/0.1195, allocations: 112 kB / 332.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1195, allocations: 0 / 332.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.1197, allocations: 16 kB / 332.4 MB, free: 14.73 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.467e-05/0.1198, allocations: 103.1 kB / 332.5 MB, free: 14.62 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001632/0.12, allocations: 51.97 kB / 332.5 MB, free: 14.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.12, allocations: 0 / 332.5 MB, free: 14.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.19e-05/0.1201, allocations: 27.92 kB / 332.6 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.1204, allocations: 23.92 kB / 332.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005931/0.121, allocations: 299.2 kB / 332.9 MB, free: 14.2 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.1213, allocations: 0.7004 MB / 333.6 MB, free: 13.48 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.683e-05/0.1214, allocations: 11.78 kB / 333.6 MB, free: 13.46 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.425e-05/0.1214, allocations: 11.42 kB / 333.6 MB, free: 13.46 MB / 286.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1214, allocations: 4 kB / 333.6 MB, free: 13.45 MB / 286.1 MB Notification: Performance of Templates: time 0.003002/0.1244, allocations: 0.8233 MB / 334.4 MB, free: 12.63 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches