Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008666/0.0008668, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 226.6 MB / 244.4 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007418/0.0007418, allocations: 103.6 kB / 296.4 MB, free: 7.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001861/0.0001861, allocations: 4 kB / 356.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1653, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.0009538/0.1663, allocations: 1.092 MB / 408.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.2641/0.4304, allocations: 135.4 MB / 0.5313 GB, free: 13.41 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.468e-05/0.4305, allocations: 0 / 0.5313 GB, free: 13.41 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 2.612e-05/0.4305, allocations: 2.984 kB / 0.5313 GB, free: 13.41 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007331/0.4312, allocations: 260.9 kB / 0.5315 GB, free: 13.35 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006696/0.4319, allocations: 356.7 kB / 0.5318 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 7.602e-05/0.432, allocations: 85.61 kB / 0.5319 GB, free: 13.27 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.144e-05/0.4321, allocations: 3.375 kB / 0.5319 GB, free: 13.27 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.575e-05/0.4321, allocations: 30.89 kB / 0.532 GB, free: 13.27 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.476e-05/0.4322, allocations: 36.39 kB / 0.532 GB, free: 13.26 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.4322, allocations: 1.75 kB / 0.532 GB, free: 13.26 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.4334, allocations: 0.7742 MB / 0.5327 GB, free: 13.19 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 3.187e-05/0.4334, allocations: 17.36 kB / 0.5328 GB, free: 13.18 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 2.682e-05/0.4335, allocations: 31.95 kB / 0.5328 GB, free: 13.15 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005857/0.4341, allocations: 451.7 kB / 0.5332 GB, free: 13.11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4341, allocations: 3.938 kB / 0.5332 GB, free: 13.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4341, allocations: 0 / 0.5332 GB, free: 13.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.4341, allocations: 4 kB / 0.5332 GB, free: 13.11 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.000465/0.4346, allocations: 448.6 kB / 0.5337 GB, free: 12.69 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.67e-05/0.4346, allocations: 10.06 kB / 0.5337 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003925/0.435, allocations: 68.89 kB / 0.5337 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.4351, allocations: 189.5 kB / 0.5339 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.4352, allocations: 5.219 kB / 0.5339 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.4352, allocations: 7.109 kB / 0.5339 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.4353, allocations: 77.69 kB / 0.534 GB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-06/0.4353, allocations: 0 / 0.534 GB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.4353, allocations: 0 / 0.534 GB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.4354, allocations: 0 / 0.534 GB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.431e-05/0.4354, allocations: 47.8 kB / 0.5341 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001698/0.4356, allocations: 189.6 kB / 0.5342 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002452/0.4359, allocations: 121.7 kB / 0.5343 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.586e-05/0.436, allocations: 35.83 kB / 0.5344 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004179/0.4364, allocations: 136 kB / 0.5345 GB, free: 12.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.4364, allocations: 39.22 kB / 0.5345 GB, free: 12.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.4364, allocations: 0 / 0.5345 GB, free: 12.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.00029/0.4367, allocations: 121.9 kB / 0.5347 GB, free: 11.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.4368, allocations: 78.48 kB / 0.5347 GB, free: 11.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.4369, allocations: 139.2 kB / 0.5349 GB, free: 11.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.4369, allocations: 29.77 kB / 0.5349 GB, free: 11.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.168e-05/0.4369, allocations: 89.02 kB / 0.535 GB, free: 11.67 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.752e-05/0.437, allocations: 23.7 kB / 0.535 GB, free: 11.65 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-06/0.437, allocations: 1.375 kB / 0.535 GB, free: 11.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.754e-05/0.4371, allocations: 318.1 kB / 0.5353 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.049e-05/0.4371, allocations: 25.67 kB / 0.5353 GB, free: 11.34 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.728e-05/0.4372, allocations: 52.67 kB / 0.5354 GB, free: 11.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.36e-05/0.4373, allocations: 29.08 kB / 0.5354 GB, free: 11.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4373, allocations: 1.375 kB / 0.5354 GB, free: 11.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002029/0.4375, allocations: 107.6 kB / 0.5355 GB, free: 11.26 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.4375, allocations: 9.766 kB / 0.5355 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.4375, allocations: 0 / 0.5355 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.4375, allocations: 2.875 kB / 0.5355 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.344e-05/0.4376, allocations: 20.28 kB / 0.5356 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.4376, allocations: 7.312 kB / 0.5356 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.553e-05/0.4377, allocations: 8.938 kB / 0.5356 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.4377, allocations: 6.125 kB / 0.5356 GB, free: 11.24 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 6.199e-05/0.4378, allocations: 112.7 kB / 0.5357 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.4378, allocations: 11.52 kB / 0.5357 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002074/0.438, allocations: 115.2 kB / 0.5358 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.438, allocations: 0 / 0.5358 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.438, allocations: 4.562 kB / 0.5358 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.4381, allocations: 2.906 kB / 0.5358 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.4382, allocations: 179.8 kB / 0.536 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.4382, allocations: 5.375 kB / 0.536 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.298e-05/0.4383, allocations: 7.906 kB / 0.536 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4383, allocations: 5.516 kB / 0.536 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.4383, allocations: 0 / 0.536 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.4383, allocations: 7.891 kB / 0.536 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4383, allocations: 3.281 kB / 0.536 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002716/0.4386, allocations: 162.7 kB / 0.5362 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.581e-05/0.4387, allocations: 94.89 kB / 0.5363 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.4387, allocations: 5.969 kB / 0.5363 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.274e-05/0.4387, allocations: 2.844 kB / 0.5363 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-05/0.4388, allocations: 7.719 kB / 0.5363 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.4388, allocations: 5.109 kB / 0.5363 GB, free: 10.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.883e-05/0.4388, allocations: 109.3 kB / 0.5364 GB, free: 10.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4388, allocations: 5.812 kB / 0.5364 GB, free: 10.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003633/0.4392, allocations: 161.7 kB / 0.5365 GB, free: 10.59 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 (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0006902/0.4399, allocations: 367.6 kB / 0.5369 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001611/0.4401, allocations: 59.89 kB / 0.5369 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.4401, allocations: 8.062 kB / 0.537 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.068e-05/0.4402, allocations: 35.36 kB / 0.537 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.4404, allocations: 23.41 kB / 0.537 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004484/0.4408, allocations: 391.4 kB / 0.5374 GB, free: 10.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.441, allocations: 0.6922 MB / 0.5381 GB, free: 9.445 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.247e-05/0.4411, allocations: 15.06 kB / 0.5381 GB, free: 9.438 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4411, allocations: 0 / 0.5381 GB, free: 9.438 MB / 394.7 MB Notification: Performance of Templates: time 0.004829/0.4459, allocations: 3.976 MB / 0.542 GB, free: 7.844 MB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches