Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002363/0.002363, allocations: 181.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.282/3.282, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 85.44 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007067/0.0007069, allocations: 11.98 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6985/0.6993, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2235/0.9228, allocations: 76.24 MB / 451.9 MB, free: 4.398 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003605/0.9233, allocations: 67.97 kB / 452 MB, free: 4.332 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009197/0.9325, allocations: 2.227 MB / 454.2 MB, free: 2.098 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.9326, allocations: 0 / 454.2 MB, free: 2.098 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.525e-05/0.9326, allocations: 4 kB / 454.2 MB, free: 2.094 MB / 330.7 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.0007394/0.9333, allocations: 407.1 kB / 454.6 MB, free: 1.645 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.678e-05/0.9334, allocations: 8.031 kB / 454.7 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.739e-05/0.9335, allocations: 16.75 kB / 454.7 MB, free: 1.621 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003529/0.9339, allocations: 213.1 kB / 454.9 MB, free: 1.375 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.9339, allocations: 8.375 kB / 454.9 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.527e-05/0.934, allocations: 8.375 kB / 454.9 MB, free: 1.359 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002955/0.9343, allocations: 81.78 kB / 455 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.9343, allocations: 0 / 455 MB, free: 1.273 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.9343, allocations: 4 kB / 455 MB, free: 1.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.9344, allocations: 0 / 455 MB, free: 1.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.9346, allocations: 58.23 kB / 455 MB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009034/0.9355, allocations: 400 kB / 455.4 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.9358, allocations: 70.53 kB / 455.5 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.9359, allocations: 32.88 kB / 455.5 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.9359, allocations: 4 kB / 455.5 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.936, allocations: 30.56 kB / 455.6 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 2.044e-06/0.936, allocations: 224 / 455.6 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004733/0.9365, allocations: 109.5 kB / 455.7 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.9366, allocations: 59.28 kB / 455.7 MB, free: 432 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.9368, allocations: 145.3 kB / 455.9 MB, free: 280 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.9368, allocations: 29.7 kB / 455.9 MB, free: 244 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.173e-05/0.9369, allocations: 104.2 kB / 456 MB, free: 136 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/0.937, allocations: 27.62 kB / 456 MB, free: 108 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.937, allocations: 4 kB / 456 MB, free: 104 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.9372, allocations: 322.8 kB / 456.3 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.851e-05/0.9373, allocations: 16 kB / 456.4 MB, free: 15.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.9374, allocations: 23.98 kB / 456.4 MB, free: 15.74 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.9376, allocations: 48.84 kB / 456.4 MB, free: 15.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.9376, allocations: 0 / 456.4 MB, free: 15.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002616/0.9379, allocations: 101.5 kB / 456.5 MB, free: 15.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.9379, allocations: 10.12 kB / 456.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.9379, allocations: 0 / 456.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.938, allocations: 256 / 456.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002881/0.9383, allocations: 39.97 kB / 456.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.9383, allocations: 4 kB / 456.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.347e-05/0.9384, allocations: 0 / 456.6 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.9384, allocations: 8 kB / 456.6 MB, free: 15.52 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.9385, allocations: 117.8 kB / 456.7 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.9386, allocations: 11.84 kB / 456.7 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.056e-05/0.9386, allocations: 12.31 kB / 456.7 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.9386, allocations: 0 / 456.7 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.9386, allocations: 0 / 456.7 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.9387, allocations: 0 / 456.7 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003283/0.939, allocations: 201.5 kB / 456.9 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.939, allocations: 0 / 456.9 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.9392, allocations: 35.91 kB / 457 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.555e-06/0.9392, allocations: 7.938 kB / 457 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.9393, allocations: 0 / 457 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.9393, allocations: 0 / 457 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.9393, allocations: 0 / 457 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004045/0.9397, allocations: 211.4 kB / 457.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.141e-05/0.9398, allocations: 85.05 kB / 457.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/0.9398, allocations: 7.875 kB / 457.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.94, allocations: 4 kB / 457.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/0.94, allocations: 7.922 kB / 457.3 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.94, allocations: 4 kB / 457.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001103/0.9402, allocations: 107.2 kB / 457.4 MB, free: 14.63 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9402, allocations: 0 / 457.4 MB, free: 14.63 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004267/0.9406, allocations: 16 kB / 457.4 MB, free: 14.61 MB / 346.7 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 (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.0001591/0.9408, allocations: 103.2 kB / 457.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002407/0.941, allocations: 47.97 kB / 457.5 MB, free: 14.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.941, allocations: 4 kB / 457.6 MB, free: 14.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.168e-05/0.9411, allocations: 20 kB / 457.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005643/0.9417, allocations: 27.91 kB / 457.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009112/0.9427, allocations: 325.9 kB / 457.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.9431, allocations: 0.7089 MB / 458.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.9432, allocations: 11.44 kB / 458.6 MB, free: 13.31 MB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/0.9432, allocations: 0 / 458.6 MB, free: 13.31 MB / 346.7 MB Notification: Performance of Templates: time 0.004131/0.9473, allocations: 1.18 MB / 459.8 MB, free: 12.13 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches