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.001555/0.001555, allocations: 110.9 kB / 17.68 MB, free: 5.332 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.001819/0.001819, allocations: 192 kB / 18.62 MB, free: 4.41 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.363/1.363, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008865/0.0008866, allocations: 52.98 kB / 302 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09677, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003133/0.09993, allocations: 1.668 MB / 353.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009263/0.1009, allocations: 492.2 kB / 353.6 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.101, allocations: 0 / 353.6 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.445e-05/0.1011, allocations: 15.86 kB / 353.7 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.1012, allocations: 23.78 kB / 353.7 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001639/0.1014, allocations: 51.88 kB / 353.7 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.1015, allocations: 99.69 kB / 353.8 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.742e-05/0.1016, allocations: 32.97 kB / 353.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.184e-05/0.1017, allocations: 47.78 kB / 353.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.041e-05/0.1018, allocations: 39.78 kB / 353.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.1018, allocations: 4 kB / 353.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.452e-05/0.1019, allocations: 15.94 kB / 354 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.265e-05/0.1019, allocations: 19.92 kB / 354 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.183e-05/0.102, allocations: 43.72 kB / 354 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.1021, allocations: 91.58 kB / 354.1 MB, free: 1.062 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1021, allocations: 7.938 kB / 354.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1021, allocations: 0 / 354.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.1021, allocations: 0 / 354.1 MB, free: 1.055 MB / 286.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.0004945/0.1026, allocations: 403 kB / 354.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.1027, allocations: 12.03 kB / 354.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.676e-05/0.1027, allocations: 16.75 kB / 354.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.103, allocations: 211.7 kB / 354.8 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.103, allocations: 11.94 kB / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.103, allocations: 7.906 kB / 354.8 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.1032, allocations: 73.67 kB / 354.8 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.1032, allocations: 0 / 354.8 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.1032, allocations: 4 kB / 354.8 MB, free: 248 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1032, allocations: 11.92 kB / 354.9 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001089/0.1034, allocations: 39.98 kB / 354.9 MB, free: 196 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005282/0.1039, allocations: 399.9 kB / 355.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.104, allocations: 62.59 kB / 355.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.804e-05/0.1041, allocations: 36.83 kB / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.1041, allocations: 0 / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.1042, allocations: 34.5 kB / 355.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 8.12e-07/0.1042, allocations: 4 kB / 355.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002617/0.1044, allocations: 89.58 kB / 355.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.1045, allocations: 51.41 kB / 355.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.1046, allocations: 145.8 kB / 355.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.1046, allocations: 29.7 kB / 355.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.591e-05/0.1047, allocations: 112.1 kB / 355.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.1048, allocations: 19.72 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.189e-05/0.1048, allocations: 21.7 kB / 355.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1049, allocations: 322.8 kB / 356.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.947e-05/0.105, allocations: 19.94 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.873e-05/0.1051, allocations: 19.98 kB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001215/0.1052, allocations: 48.84 kB / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.1052, allocations: 0 / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001739/0.1054, allocations: 93.52 kB / 356.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.1054, allocations: 4 kB / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1054, allocations: 0 / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.582e-05/0.1054, allocations: 0 / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.1057, allocations: 39.91 kB / 356.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.1057, allocations: 4 kB / 356.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.344e-05/0.1057, allocations: 3.938 kB / 356.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.1058, allocations: 12 kB / 356.4 MB, free: 14.5 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 0.0001123/0.1059, allocations: 125.7 kB / 356.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.1059, allocations: 7.906 kB / 356.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.106, allocations: 12.25 kB / 356.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.106, allocations: 4 kB / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.106, allocations: 0 / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.106, allocations: 0 / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.1062, allocations: 201.5 kB / 356.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1062, allocations: 0 / 356.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.1064, allocations: 32.16 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1064, allocations: 0 / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1064, allocations: 4 kB / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1064, allocations: 0 / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.1064, allocations: 4 kB / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003343/0.1068, allocations: 207.2 kB / 357 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.513e-05/0.1068, allocations: 89.03 kB / 357.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1069, allocations: 4.062 kB / 357.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.69e-05/0.107, allocations: 8 kB / 357.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.1071, allocations: 3.984 kB / 357.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.1071, allocations: 4 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.335e-05/0.1072, allocations: 108.6 kB / 357.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1072, allocations: 0 / 357.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002355/0.1074, allocations: 16 kB / 357.3 MB, free: 13.59 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 9.647e-05/0.1075, allocations: 91.25 kB / 357.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001697/0.1077, allocations: 51.92 kB / 357.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1077, allocations: 0 / 357.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.869e-05/0.1078, allocations: 23.98 kB / 357.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.1081, allocations: 23.92 kB / 357.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006301/0.1087, allocations: 257.5 kB / 357.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/0.109, allocations: 0.7041 MB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.389e-05/0.1091, allocations: 11.92 kB / 358.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.667e-05/0.1091, allocations: 11.44 kB / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1091, allocations: 0 / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of Templates: time 0.003155/0.1123, allocations: 0.8957 MB / 359.3 MB, free: 11.48 MB / 302.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/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