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.001024/0.001024, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001066/0.001067, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.203/1.203, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001181/0.001181, allocations: 55.92 kB / 280.6 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08225/0.08344, allocations: 46.64 MB / 327.3 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003155/0.08664, allocations: 1.665 MB / 328.9 MB, free: 2.797 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.08767, allocations: 0.523 MB / 329.5 MB, free: 2.266 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.916e-05/0.0878, allocations: 0 / 329.5 MB, free: 2.266 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.08793, allocations: 7.875 kB / 329.5 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002092/0.08815, allocations: 31.78 kB / 329.5 MB, free: 2.227 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001795/0.08834, allocations: 47.86 kB / 329.5 MB, free: 2.18 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001731/0.08852, allocations: 95.72 kB / 329.6 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.08872, allocations: 37.09 kB / 329.7 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.972e-05/0.08883, allocations: 47.77 kB / 329.7 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.319e-05/0.08893, allocations: 39.78 kB / 329.8 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.08896, allocations: 12 kB / 329.8 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.61e-05/0.08898, allocations: 8 kB / 329.8 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.907e-05/0.08906, allocations: 15.92 kB / 329.8 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.885e-05/0.08912, allocations: 43.72 kB / 329.8 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.08936, allocations: 87.92 kB / 329.9 MB, free: 1.801 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.423e-06/0.08937, allocations: 0 / 329.9 MB, free: 1.801 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.08938, allocations: 0 / 329.9 MB, free: 1.801 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.08939, allocations: 0 / 329.9 MB, free: 1.801 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.0006153/0.09001, allocations: 411 kB / 330.3 MB, free: 1.352 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.09006, allocations: 15.97 kB / 330.3 MB, free: 1.336 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.09011, allocations: 16.75 kB / 330.4 MB, free: 1.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.09033, allocations: 192.8 kB / 330.5 MB, free: 1.094 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-06/0.09035, allocations: 8.375 kB / 330.6 MB, free: 1.086 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.09039, allocations: 8.125 kB / 330.6 MB, free: 1.078 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.09057, allocations: 81.66 kB / 330.6 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.09059, allocations: 0 / 330.6 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.09061, allocations: 4 kB / 330.6 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.09062, allocations: 0 / 330.6 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.09074, allocations: 47.91 kB / 330.7 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005548/0.0913, allocations: 403.9 kB / 331.1 MB, free: 496 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.09146, allocations: 62.59 kB / 331.2 MB, free: 424 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.568e-05/0.09153, allocations: 32.89 kB / 331.2 MB, free: 388 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.09155, allocations: 0 / 331.2 MB, free: 388 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.09158, allocations: 30.56 kB / 331.2 MB, free: 348 kB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 8.22e-07/0.09159, allocations: 0 / 331.2 MB, free: 348 kB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.000285/0.09187, allocations: 105.4 kB / 331.3 MB, free: 236 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.09193, allocations: 51.41 kB / 331.4 MB, free: 172 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.09206, allocations: 149.8 kB / 331.5 MB, free: 12 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.09209, allocations: 25.7 kB / 331.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.994e-05/0.09216, allocations: 109 kB / 331.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.106e-05/0.0922, allocations: 27.69 kB / 331.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.449e-05/0.09224, allocations: 21.66 kB / 331.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.09236, allocations: 318.8 kB / 332 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.576e-05/0.09244, allocations: 19.98 kB / 332 MB, free: 15.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.185e-05/0.0925, allocations: 27.98 kB / 332 MB, free: 15.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.09261, allocations: 44.84 kB / 332.1 MB, free: 15.4 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.09262, allocations: 0 / 332.1 MB, free: 15.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000164/0.09279, allocations: 93.45 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.09281, allocations: 8 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.09282, allocations: 0 / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.09284, allocations: 7.922 kB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.09306, allocations: 35.97 kB / 332.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.09308, allocations: 4 kB / 332.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.489e-05/0.09314, allocations: 15.92 kB / 332.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.09315, allocations: 0 / 332.3 MB, free: 15.23 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.085e-05/0.09323, allocations: 113.8 kB / 332.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/0.09326, allocations: 11.84 kB / 332.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.878e-05/0.0933, allocations: 12.31 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.0933, allocations: 0 / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.09331, allocations: 0 / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.09332, allocations: 3.984 kB / 332.4 MB, free: 15.08 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.0935, allocations: 205.5 kB / 332.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.09351, allocations: 0 / 332.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.09365, allocations: 24.17 kB / 332.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.09366, allocations: 4 kB / 332.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.09368, allocations: 4 kB / 332.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.09368, allocations: 0 / 332.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.09369, allocations: 0 / 332.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.09395, allocations: 207.3 kB / 332.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.069e-05/0.09402, allocations: 88.98 kB / 332.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.09404, allocations: 0 / 332.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.36e-05/0.09413, allocations: 7.984 kB / 332.9 MB, free: 14.47 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.023e-05/0.09417, allocations: 4 kB / 332.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.09418, allocations: 0 / 332.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.916e-05/0.09425, allocations: 119.9 kB / 333 MB, free: 14.35 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09426, allocations: 0 / 333 MB, free: 14.35 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002135/0.09448, allocations: 16 kB / 333.1 MB, free: 14.33 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 0.0001348/0.09462, allocations: 99.25 kB / 333.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001647/0.09479, allocations: 47.97 kB / 333.2 MB, free: 14.18 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.0948, allocations: 0 / 333.2 MB, free: 14.18 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.152e-05/0.09487, allocations: 27.92 kB / 333.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.0952, allocations: 27.86 kB / 333.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005747/0.09579, allocations: 253.5 kB / 333.5 MB, free: 13.85 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.09611, allocations: 0.7117 MB / 334.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.201e-05/0.09616, allocations: 7.781 kB / 334.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.274e-05/0.0962, allocations: 11.44 kB / 334.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.0962, allocations: 3.938 kB / 334.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of Templates: time 0.003101/0.09931, allocations: 0.8987 MB / 335.1 MB, free: 12.2 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches