Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001083/0.001083, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 59.75 kB / 306.2 MB, free: 1.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1161, allocations: 50.54 MB / 356.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002764/0.1189, allocations: 1.75 MB / 358.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009549/0.1198, allocations: 0.5494 MB / 359.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.451e-05/0.1199, allocations: 0 / 359.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.888e-05/0.12, allocations: 3.938 kB / 359.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.1201, allocations: 27.84 kB / 359.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001814/0.1203, allocations: 51.88 kB / 359.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001362/0.1205, allocations: 91.7 kB / 359.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.312e-05/0.1206, allocations: 33.09 kB / 359.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.1207, allocations: 55.78 kB / 359.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.113e-05/0.1208, allocations: 39.78 kB / 359.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.54e-05/0.1208, allocations: 4 kB / 359.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.379e-05/0.1209, allocations: 11.98 kB / 359.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.987e-05/0.1209, allocations: 19.91 kB / 359.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.893e-05/0.121, allocations: 39.75 kB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.1211, allocations: 87.86 kB / 359.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1211, allocations: 3.984 kB / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1211, allocations: 0 / 359.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.595e-06/0.1211, allocations: 0 / 359.5 MB, free: 11.71 MB / 302.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.0005222/0.1217, allocations: 415 kB / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.287e-05/0.1217, allocations: 8.031 kB / 360 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.1218, allocations: 20.75 kB / 360 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001912/0.122, allocations: 211.8 kB / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.554e-06/0.1221, allocations: 4.375 kB / 360.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.49e-05/0.1221, allocations: 12.12 kB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.1223, allocations: 77.66 kB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1223, allocations: 11.94 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.1223, allocations: 0 / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.1223, allocations: 4 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.1224, allocations: 35.98 kB / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006075/0.1231, allocations: 411.9 kB / 360.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001443/0.1232, allocations: 62.59 kB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.972e-05/0.1233, allocations: 28.89 kB / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.1233, allocations: 0 / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.1234, allocations: 34.56 kB / 360.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 8.71e-07/0.1234, allocations: 4 kB / 360.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002802/0.1236, allocations: 109.3 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.1237, allocations: 55.34 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.1238, allocations: 138.4 kB / 361.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.1238, allocations: 29.7 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.839e-05/0.1239, allocations: 112.1 kB / 361.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.1239, allocations: 19.73 kB / 361.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.897e-05/0.124, allocations: 21.72 kB / 361.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1241, allocations: 318.8 kB / 361.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.135e-05/0.1242, allocations: 23.98 kB / 361.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.994e-05/0.1242, allocations: 20 kB / 361.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.1244, allocations: 45 kB / 361.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1244, allocations: 3.938 kB / 361.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001756/0.1246, allocations: 97.48 kB / 361.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.1246, allocations: 4 kB / 361.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1246, allocations: 4 kB / 361.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.1246, allocations: 0 / 361.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.1248, allocations: 39.97 kB / 361.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.1248, allocations: 0 / 361.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.833e-05/0.1249, allocations: 15.83 kB / 361.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.1249, allocations: 0 / 361.9 MB, free: 9.125 MB / 302.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 9.96e-05/0.125, allocations: 121.8 kB / 362 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.388e-05/0.1251, allocations: 11.84 kB / 362 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.1251, allocations: 16.25 kB / 362 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1251, allocations: 0 / 362 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1251, allocations: 4 kB / 362 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1251, allocations: 3.984 kB / 362 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/0.1253, allocations: 193.6 kB / 362.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1253, allocations: 0 / 362.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.1255, allocations: 23.92 kB / 362.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1255, allocations: 4 kB / 362.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.1255, allocations: 0 / 362.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1255, allocations: 256 / 362.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.1255, allocations: 4 kB / 362.3 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002848/0.1258, allocations: 203.4 kB / 362.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.026e-05/0.1259, allocations: 88.98 kB / 362.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.1259, allocations: 0 / 362.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.761e-05/0.126, allocations: 7.984 kB / 362.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.199e-05/0.126, allocations: 7.938 kB / 362.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-06/0.1261, allocations: 0 / 362.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.906e-05/0.1261, allocations: 114.4 kB / 362.7 MB, free: 8.246 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.804e-06/0.1262, allocations: 4.062 kB / 362.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000234/0.1264, allocations: 23.84 kB / 362.7 MB, free: 8.219 MB / 302.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.0001199/0.1265, allocations: 95.19 kB / 362.8 MB, free: 8.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001646/0.1267, allocations: 47.97 kB / 362.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1267, allocations: 0 / 362.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.543e-05/0.1268, allocations: 27.92 kB / 362.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.1272, allocations: 26.58 kB / 362.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006124/0.1278, allocations: 278.7 kB / 363.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.1281, allocations: 0.7093 MB / 363.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.486e-05/0.1282, allocations: 11.94 kB / 363.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/0.1282, allocations: 11.44 kB / 363.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1282, allocations: 0 / 363.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of Templates: time 0.00303/0.1313, allocations: 0.8241 MB / 364.7 MB, free: 6.145 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_trunk_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches