Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_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.001445/0.001445, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.001619/0.001619, allocations: 191 kB / 18 MB, free: 5.105 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.454/1.454, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3451, allocations: 49.44 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003394/0.3485, allocations: 1.68 MB / 402.4 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00087/0.3494, allocations: 490.7 kB / 402.9 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.965e-05/0.3495, allocations: 4 kB / 402.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.3497, allocations: 15.86 kB / 402.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.3499, allocations: 27.8 kB / 402.9 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000173/0.3501, allocations: 43.88 kB / 403 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001585/0.3502, allocations: 103.7 kB / 403.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.3504, allocations: 33.05 kB / 403.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.401e-05/0.3504, allocations: 43.8 kB / 403.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.3506, allocations: 47.77 kB / 403.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.364e-05/0.3506, allocations: 8 kB / 403.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.481e-05/0.3506, allocations: 7.938 kB / 403.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.943e-05/0.3507, allocations: 15.92 kB / 403.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.235e-05/0.3507, allocations: 47.73 kB / 403.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.3509, allocations: 85.05 kB / 403.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3509, allocations: 0 / 403.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3509, allocations: 0 / 403.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.3509, allocations: 0 / 403.3 MB, free: 6.219 MB / 318.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.0005563/0.3515, allocations: 417.8 kB / 403.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3515, allocations: 15.89 kB / 403.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.3516, allocations: 8.844 kB / 403.8 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.3519, allocations: 218 kB / 404 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.3519, allocations: 4 kB / 404 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.352, allocations: 12 kB / 404 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.3522, allocations: 73.67 kB / 404.1 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.3522, allocations: 0 / 404.1 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.3522, allocations: 7.984 kB / 404.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3522, allocations: 7.922 kB / 404.1 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.3523, allocations: 35.98 kB / 404.1 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006046/0.3529, allocations: 411.8 kB / 404.5 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001345/0.3531, allocations: 58.59 kB / 404.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.271e-05/0.3532, allocations: 36.83 kB / 404.6 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.3532, allocations: 0 / 404.6 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.3532, allocations: 34.5 kB / 404.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 8.72e-07/0.3532, allocations: 0 / 404.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002745/0.3535, allocations: 89.58 kB / 404.7 MB, free: 4.645 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.3536, allocations: 59.41 kB / 404.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.3538, allocations: 144.1 kB / 404.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.3538, allocations: 29.7 kB / 405 MB, free: 4.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.785e-05/0.3538, allocations: 108.1 kB / 405.1 MB, free: 4.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.354, allocations: 15.81 kB / 405.1 MB, free: 4.266 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/0.354, allocations: 21.7 kB / 405.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.3542, allocations: 318.8 kB / 405.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.947e-05/0.3542, allocations: 19.94 kB / 405.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.332e-05/0.3543, allocations: 27.98 kB / 405.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001119/0.3544, allocations: 48.98 kB / 405.5 MB, free: 3.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3544, allocations: 3.938 kB / 405.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002592/0.3547, allocations: 89.56 kB / 405.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.3547, allocations: 8 kB / 405.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.3547, allocations: 3.938 kB / 405.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3547, allocations: 0 / 405.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.355, allocations: 43.91 kB / 405.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.355, allocations: 0 / 405.7 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.785e-05/0.3551, allocations: 11.91 kB / 405.7 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3551, allocations: 0 / 405.7 MB, free: 3.656 MB / 318.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.7e-05/0.3551, allocations: 121.8 kB / 405.8 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.031e-05/0.3552, allocations: 7.906 kB / 405.8 MB, free: 3.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.143e-05/0.3552, allocations: 12.31 kB / 405.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3552, allocations: 0 / 405.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3552, allocations: 0 / 405.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3552, allocations: 4.25 kB / 405.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.3554, allocations: 201.5 kB / 406 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3555, allocations: 4 kB / 406 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.3556, allocations: 27.91 kB / 406 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.3556, allocations: 4 kB / 406.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.3556, allocations: 4 kB / 406.1 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3556, allocations: 0 / 406.1 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3556, allocations: 0 / 406.1 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.3559, allocations: 207.3 kB / 406.3 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.924e-05/0.356, allocations: 85.05 kB / 406.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.356, allocations: 4 kB / 406.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.972e-05/0.3561, allocations: 0 / 406.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.564e-05/0.3561, allocations: 7.984 kB / 406.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.3561, allocations: 0 / 406.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.02e-05/0.3562, allocations: 109.9 kB / 406.5 MB, free: 2.773 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3562, allocations: 4 kB / 406.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.3565, allocations: 19.97 kB / 406.5 MB, free: 2.75 MB / 318.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.75e-05/0.3566, allocations: 99.19 kB / 406.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.3568, allocations: 51.86 kB / 406.6 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3568, allocations: 0 / 406.6 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.502e-05/0.3568, allocations: 23.98 kB / 406.7 MB, free: 2.57 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.3572, allocations: 26.22 kB / 406.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000663/0.3578, allocations: 261.4 kB / 406.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.3582, allocations: 0.704 MB / 407.6 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.562e-05/0.3583, allocations: 8.172 kB / 407.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.352e-05/0.3583, allocations: 15.38 kB / 407.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3583, allocations: 4 kB / 407.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of Templates: time 0.003179/0.3615, allocations: 0.8987 MB / 408.6 MB, free: 0.6172 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches