Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009431/0.0009431, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.188/1.188, allocations: 226.6 MB / 244.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007375/0.0007375, allocations: 103.3 kB / 296.4 MB, free: 6.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001851/0.0001851, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1631, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.0008863/0.164, allocations: 1.072 MB / 408.6 MB, free: 26.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.261/0.425, allocations: 135.1 MB / 0.5309 GB, free: 13.4 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.437e-05/0.4251, allocations: 0 / 0.5309 GB, free: 13.4 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 1.749e-05/0.4251, allocations: 8.25 kB / 0.5309 GB, free: 13.39 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005897/0.4257, allocations: 181.7 kB / 0.5311 GB, free: 13.36 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000643/0.4263, allocations: 285.8 kB / 0.5314 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 5.644e-05/0.4264, allocations: 53.56 kB / 0.5314 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.991e-05/0.4264, allocations: 2.484 kB / 0.5314 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.246e-05/0.4265, allocations: 25.7 kB / 0.5315 GB, free: 13.28 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.38e-05/0.4265, allocations: 27.92 kB / 0.5315 GB, free: 13.27 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.4266, allocations: 3.312 kB / 0.5315 GB, free: 13.27 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006714/0.4272, allocations: 474.3 kB / 0.5319 GB, free: 13.23 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 9.628e-06/0.4273, allocations: 11.47 kB / 0.532 GB, free: 13.23 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 2.253e-05/0.4273, allocations: 34.58 kB / 0.532 GB, free: 13.2 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003409/0.4276, allocations: 298.7 kB / 0.5323 GB, free: 13.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.4276, allocations: 0 / 0.5323 GB, free: 13.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.456e-06/0.4277, allocations: 5.094 kB / 0.5323 GB, free: 13.17 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.966e-06/0.4277, allocations: 3.938 kB / 0.5323 GB, free: 13.17 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004309/0.4281, allocations: 412.5 kB / 0.5327 GB, free: 12.78 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.4281, allocations: 9.469 kB / 0.5327 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001209/0.4294, allocations: 108.1 kB / 0.5328 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.4296, allocations: 225.9 kB / 0.533 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.4296, allocations: 5.078 kB / 0.533 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.4297, allocations: 3.906 kB / 0.533 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.4298, allocations: 93.31 kB / 0.5331 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.4299, allocations: 0 / 0.5331 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.4299, allocations: 0.5938 kB / 0.5331 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.4299, allocations: 1.406 kB / 0.5331 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.4301, allocations: 50.98 kB / 0.5332 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002111/0.4303, allocations: 200.1 kB / 0.5333 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004453/0.4307, allocations: 128.2 kB / 0.5335 GB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.4309, allocations: 42.08 kB / 0.5335 GB, free: 12.24 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005563/0.4314, allocations: 0.9859 MB / 0.5345 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.757e-05/0.4314, allocations: 31.88 kB / 0.5345 GB, free: 11.07 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.4314, allocations: 0 / 0.5345 GB, free: 11.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003861/0.4318, allocations: 134.6 kB / 0.5346 GB, free: 11.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.4319, allocations: 81.11 kB / 0.5347 GB, free: 10.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.4321, allocations: 153.6 kB / 0.5349 GB, free: 10.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.4321, allocations: 27.56 kB / 0.5349 GB, free: 10.81 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.876e-05/0.4321, allocations: 87.75 kB / 0.535 GB, free: 10.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/0.4322, allocations: 23.98 kB / 0.535 GB, free: 10.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.4322, allocations: 0 / 0.535 GB, free: 10.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.518e-05/0.4323, allocations: 318.2 kB / 0.5353 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.502e-05/0.4324, allocations: 27.41 kB / 0.5353 GB, free: 10.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.4325, allocations: 59.33 kB / 0.5354 GB, free: 10.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.744e-05/0.4326, allocations: 30.33 kB / 0.5354 GB, free: 10.36 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.4326, allocations: 5.266 kB / 0.5354 GB, free: 10.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002744/0.4329, allocations: 119.4 kB / 0.5355 GB, free: 10.31 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.4329, allocations: 10.47 kB / 0.5355 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.4329, allocations: 1.438 kB / 0.5355 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.208e-06/0.4329, allocations: 1.094 kB / 0.5355 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.4331, allocations: 28.86 kB / 0.5356 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.4331, allocations: 3.969 kB / 0.5356 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.4333, allocations: 4.5 kB / 0.5356 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.4333, allocations: 12.8 kB / 0.5356 GB, free: 10.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (8): * Single equations (assignments): 8 * 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 8.072e-05/0.4334, allocations: 110.4 kB / 0.5357 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.4334, allocations: 18.5 kB / 0.5357 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000464/0.4339, allocations: 241.3 kB / 0.5359 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.4339, allocations: 3.938 kB / 0.5359 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4339, allocations: 0.875 kB / 0.5359 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4339, allocations: 4.172 kB / 0.5359 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.4341, allocations: 212 kB / 0.5361 GB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.4341, allocations: 3.953 kB / 0.5361 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.4343, allocations: 20.25 kB / 0.5362 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.4343, allocations: 0 / 0.5362 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.4343, allocations: 9.109 kB / 0.5362 GB, free: 9.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.4343, allocations: 0 / 0.5362 GB, free: 9.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4343, allocations: 2.906 kB / 0.5362 GB, free: 9.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003432/0.4347, allocations: 182.5 kB / 0.5364 GB, free: 9.844 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.887e-05/0.4347, allocations: 104.4 kB / 0.5365 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.4348, allocations: 4.531 kB / 0.5365 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.435, allocations: 5.656 kB / 0.5365 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.21e-05/0.435, allocations: 5.766 kB / 0.5365 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.435, allocations: 7.391 kB / 0.5365 GB, free: 9.742 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001347/0.4352, allocations: 127.9 kB / 0.5366 GB, free: 9.668 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4352, allocations: 4.062 kB / 0.5366 GB, free: 9.664 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003682/0.4355, allocations: 131.8 kB / 0.5367 GB, free: 9.637 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005451/0.4361, allocations: 306.8 kB / 0.537 GB, free: 9.508 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002227/0.4363, allocations: 80.83 kB / 0.5371 GB, free: 9.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.4363, allocations: 0 / 0.5371 GB, free: 9.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.938e-05/0.4364, allocations: 41.58 kB / 0.5371 GB, free: 9.496 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.4366, allocations: 11.12 kB / 0.5371 GB, free: 9.496 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004744/0.4371, allocations: 386.7 kB / 0.5375 GB, free: 9.215 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.4373, allocations: 0.6895 MB / 0.5382 GB, free: 8.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.4375, allocations: 46.22 kB / 0.5382 GB, free: 8.508 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4375, allocations: 0 / 0.5382 GB, free: 8.508 MB / 394.7 MB Notification: Performance of Templates: time 0.004977/0.4424, allocations: 4.162 MB / 0.5423 GB, free: 6.789 MB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_T/Inverse_sh_T.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches