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.001181/0.001181, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001437/0.001438, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 59.56 kB / 306.9 MB, free: 0.668 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1147, allocations: 50.53 MB / 357.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002986/0.1177, allocations: 1.688 MB / 359.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009888/0.1188, allocations: 0.5549 MB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.223e-05/0.1189, allocations: 4 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.844e-05/0.119, allocations: 7.875 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001694/0.1191, allocations: 27.73 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002028/0.1194, allocations: 55.86 kB / 359.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.1195, allocations: 99.7 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.1197, allocations: 41.06 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.1198, allocations: 47.78 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.663e-05/0.1199, allocations: 43.77 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.12, allocations: 12 kB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.812e-05/0.12, allocations: 11.94 kB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.766e-05/0.1201, allocations: 19.92 kB / 360.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.332e-05/0.1201, allocations: 47.67 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.1203, allocations: 83.92 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1203, allocations: 0 / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1203, allocations: 0 / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.1203, allocations: 0 / 360.2 MB, free: 11.38 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.0005949/0.1209, allocations: 423 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.121, allocations: 8.031 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.1211, allocations: 24.73 kB / 360.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.1213, allocations: 207.6 kB / 360.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.1214, allocations: 8.375 kB / 360.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/0.1214, allocations: 8.125 kB / 360.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.1216, allocations: 80.33 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.1216, allocations: 0 / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.1216, allocations: 8 kB / 360.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.1216, allocations: 4 kB / 360.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.1218, allocations: 39.97 kB / 361 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006045/0.1224, allocations: 400 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001668/0.1225, allocations: 70.56 kB / 361.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.102e-05/0.1226, allocations: 28.84 kB / 361.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.1227, allocations: 4 kB / 361.5 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.1227, allocations: 30.56 kB / 361.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.1227, allocations: 0 / 361.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002901/0.123, allocations: 97.42 kB / 361.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.1231, allocations: 59.41 kB / 361.7 MB, free: 9.727 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.1232, allocations: 146.4 kB / 361.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.1232, allocations: 25.7 kB / 361.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.963e-05/0.1233, allocations: 120 kB / 361.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.575e-05/0.1233, allocations: 11.81 kB / 362 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.1234, allocations: 21.7 kB / 362 MB, free: 9.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.1235, allocations: 318.8 kB / 362.3 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.442e-05/0.1236, allocations: 23.98 kB / 362.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.447e-05/0.1237, allocations: 23.97 kB / 362.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.1238, allocations: 52.83 kB / 362.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1238, allocations: 0 / 362.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000176/0.124, allocations: 89.52 kB / 362.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.124, allocations: 7.281 kB / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.124, allocations: 0 / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.124, allocations: 0 / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.1243, allocations: 51.84 kB / 362.5 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1243, allocations: 0 / 362.5 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.596e-05/0.1244, allocations: 15.78 kB / 362.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.1244, allocations: 0 / 362.5 MB, free: 8.789 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.277e-05/0.1245, allocations: 121.8 kB / 362.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.1245, allocations: 15.83 kB / 362.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.1246, allocations: 8.312 kB / 362.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1246, allocations: 0 / 362.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1246, allocations: 4 kB / 362.7 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1246, allocations: 4 kB / 362.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.1248, allocations: 201.9 kB / 362.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1248, allocations: 0 / 362.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.125, allocations: 31.91 kB / 362.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.125, allocations: 0 / 362.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.125, allocations: 0 / 362.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.125, allocations: 0 / 362.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.125, allocations: 0 / 362.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003283/0.1254, allocations: 207.4 kB / 363.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.926e-05/0.1254, allocations: 88.98 kB / 363.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.1255, allocations: 0 / 363.2 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.588e-05/0.1255, allocations: 4 kB / 363.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.1256, allocations: 3.984 kB / 363.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-06/0.1256, allocations: 4 kB / 363.2 MB, free: 8.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.745e-05/0.1257, allocations: 114.8 kB / 363.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1257, allocations: 0 / 363.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.126, allocations: 15.91 kB / 363.4 MB, free: 7.891 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.0001615/0.1261, allocations: 95.31 kB / 363.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002417/0.1264, allocations: 55.92 kB / 363.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1264, allocations: 0 / 363.5 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.902e-05/0.1265, allocations: 19.98 kB / 363.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.1269, allocations: 23.92 kB / 363.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006711/0.1276, allocations: 268.8 kB / 363.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1279, allocations: 0.7051 MB / 364.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5e-05/0.128, allocations: 11.94 kB / 364.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.128, allocations: 11.44 kB / 364.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of SimCode: time 1.743e-06/0.128, allocations: 3.938 kB / 364.5 MB, free: 6.645 MB / 302.1 MB Notification: Performance of Templates: time 0.003859/0.1319, allocations: 0.8964 MB / 365.4 MB, free: 5.754 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