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.0008944/0.0008944, allocations: 88.89 kB / 16.65 MB, free: 6.535 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.001051/0.001051, allocations: 176.4 kB / 17.56 MB, free: 6.18 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.383/1.383, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003132/0.0003132, allocations: 13.38 kB / 301.4 MB, free: 6.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1008, allocations: 50.41 MB / 351.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001926/0.1028, allocations: 1.394 MB / 353.2 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008972/0.1037, allocations: 487.6 kB / 353.7 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.577e-05/0.1038, allocations: 3.938 kB / 353.7 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.016e-05/0.104, allocations: 7.922 kB / 353.7 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001703/0.1041, allocations: 19.84 kB / 353.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.1043, allocations: 39.97 kB / 353.8 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.1045, allocations: 95.69 kB / 353.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.1047, allocations: 32.97 kB / 353.9 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.1048, allocations: 35.8 kB / 353.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.812e-05/0.1049, allocations: 35.77 kB / 354 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.896e-05/0.1049, allocations: 4 kB / 354 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.824e-05/0.1049, allocations: 7.938 kB / 354 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.698e-05/0.105, allocations: 15.92 kB / 354 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.719e-05/0.1051, allocations: 57.45 kB / 354 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.1052, allocations: 79.91 kB / 354.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1052, allocations: 0 / 354.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1052, allocations: 4 kB / 354.1 MB, free: 1.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1052, allocations: 0 / 354.1 MB, free: 1.406 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.000519/0.1058, allocations: 395.1 kB / 354.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.1058, allocations: 8.031 kB / 354.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.844e-05/0.1059, allocations: 16.75 kB / 354.5 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.1061, allocations: 200.7 kB / 354.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.1061, allocations: 11.94 kB / 354.7 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.1061, allocations: 8 kB / 354.7 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.1063, allocations: 85.59 kB / 354.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.1063, allocations: 0 / 354.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.1063, allocations: 0 / 354.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1064, allocations: 0 / 354.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.1065, allocations: 51.34 kB / 354.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005795/0.1071, allocations: 411.9 kB / 355.3 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001583/0.1072, allocations: 62.62 kB / 355.3 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.482e-05/0.1073, allocations: 32.86 kB / 355.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.1074, allocations: 3.984 kB / 355.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.1074, allocations: 42.44 kB / 355.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.1074, allocations: 0 / 355.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002933/0.1077, allocations: 93.58 kB / 355.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.1077, allocations: 59.41 kB / 355.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.1079, allocations: 144.8 kB / 355.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.1079, allocations: 29.7 kB / 355.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.022e-05/0.108, allocations: 108.1 kB / 355.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.553e-05/0.108, allocations: 19.72 kB / 355.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.108, allocations: 9.719 kB / 355.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1082, allocations: 326.8 kB / 356.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.016e-05/0.1082, allocations: 31.92 kB / 356.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.546e-05/0.1083, allocations: 19.98 kB / 356.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.1084, allocations: 56.78 kB / 356.3 MB, free: 15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1085, allocations: 0 / 356.3 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001793/0.1086, allocations: 89.52 kB / 356.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1087, allocations: 12 kB / 356.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.1087, allocations: 0 / 356.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1087, allocations: 0 / 356.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.1089, allocations: 39.97 kB / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.1089, allocations: 0 / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.402e-05/0.109, allocations: 11.92 kB / 356.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.109, allocations: 4 kB / 356.5 MB, free: 14.84 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 8.613e-05/0.1091, allocations: 121.7 kB / 356.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/0.1092, allocations: 11.91 kB / 356.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.1092, allocations: 12.3 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1092, allocations: 4 kB / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1092, allocations: 0 / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1092, allocations: 0 / 356.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002255/0.1095, allocations: 201.5 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1095, allocations: 0 / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.1096, allocations: 23.98 kB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1097, allocations: 0 / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.1097, allocations: 4.25 kB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1097, allocations: 4 kB / 356.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1097, allocations: 4 kB / 356.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.11, allocations: 207.3 kB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.984e-05/0.1101, allocations: 89.05 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.948e-05/0.1101, allocations: 3.984 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-05/0.1102, allocations: 8.062 kB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.242e-05/0.1103, allocations: 0 / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.1103, allocations: 0 / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.623e-05/0.1104, allocations: 112.9 kB / 357.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1104, allocations: 0 / 357.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000243/0.1106, allocations: 16 kB / 357.3 MB, free: 13.94 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.938e-05/0.1107, allocations: 95.19 kB / 357.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001716/0.1109, allocations: 59.91 kB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1109, allocations: 3.938 kB / 357.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.652e-05/0.111, allocations: 23.98 kB / 357.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.1113, allocations: 30.67 kB / 357.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006368/0.112, allocations: 307.6 kB / 357.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.1123, allocations: 0.7082 MB / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.944e-05/0.1124, allocations: 7.984 kB / 358.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.1124, allocations: 15.42 kB / 358.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1124, allocations: 0 / 358.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.003042/0.1155, allocations: 0.7972 MB / 359.3 MB, free: 11.84 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 -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/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_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches