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: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009396/0.0009395, allocations: 195.2 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.165/1.165, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000685/0.0006851, allocations: 92.48 kB / 296.7 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002012/0.0002012, allocations: 8 kB / 356.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1829, allocations: 51.29 MB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001071/0.184, allocations: 1.093 MB / 409.2 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.2906/0.4747, allocations: 135.4 MB / 0.5319 GB, free: 13.36 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.902e-05/0.4747, allocations: 0.6562 kB / 0.5319 GB, free: 13.36 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 3.722e-05/0.4748, allocations: 2.484 kB / 0.5319 GB, free: 13.36 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009421/0.4757, allocations: 321 kB / 0.5322 GB, free: 13.31 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009011/0.4767, allocations: 456.4 kB / 0.5326 GB, free: 13.24 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 7.876e-05/0.4767, allocations: 84.28 kB / 0.5327 GB, free: 13.22 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.005e-05/0.4768, allocations: 9.891 kB / 0.5327 GB, free: 13.21 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.972e-05/0.4768, allocations: 29.34 kB / 0.5327 GB, free: 13.21 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.666e-05/0.4769, allocations: 37.66 kB / 0.5328 GB, free: 13.2 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.4769, allocations: 3.719 kB / 0.5328 GB, free: 13.2 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.4788, allocations: 1.227 MB / 0.534 GB, free: 13.1 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 3.045e-05/0.4788, allocations: 24.56 kB / 0.534 GB, free: 13.09 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 4.202e-05/0.4789, allocations: 51.3 kB / 0.5341 GB, free: 13.06 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006856/0.4796, allocations: 0.5144 MB / 0.5346 GB, free: 13.02 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4796, allocations: 1.859 kB / 0.5346 GB, free: 13.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.4796, allocations: 0 / 0.5346 GB, free: 13.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.4796, allocations: 1 kB / 0.5346 GB, free: 13.02 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.0005495/0.4802, allocations: 449.4 kB / 0.535 GB, free: 12.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.4802, allocations: 8.062 kB / 0.535 GB, free: 12.6 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.161e-05/0.4802, allocations: 30.75 kB / 0.535 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004064/0.4806, allocations: 73.45 kB / 0.5351 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.4808, allocations: 193.2 kB / 0.5353 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.4808, allocations: 10.72 kB / 0.5353 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.4809, allocations: 5.656 kB / 0.5353 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.481, allocations: 76.88 kB / 0.5354 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.481, allocations: 0 / 0.5354 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.481, allocations: 2.812 kB / 0.5354 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.481, allocations: 0 / 0.5354 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.827e-05/0.4811, allocations: 46.27 kB / 0.5354 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001763/0.4813, allocations: 202.4 kB / 0.5356 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000266/0.4816, allocations: 111.2 kB / 0.5357 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.155e-05/0.4817, allocations: 33.72 kB / 0.5357 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004079/0.4821, allocations: 133.5 kB / 0.5359 GB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.4821, allocations: 38.78 kB / 0.5359 GB, free: 11.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.4821, allocations: 0 / 0.5359 GB, free: 11.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002978/0.4824, allocations: 115.8 kB / 0.536 GB, free: 11.85 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.4825, allocations: 79.48 kB / 0.5361 GB, free: 11.75 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.994e-05/0.4826, allocations: 144.2 kB / 0.5362 GB, free: 11.65 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.4826, allocations: 25.7 kB / 0.5363 GB, free: 11.62 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.3e-05/0.4827, allocations: 89.27 kB / 0.5363 GB, free: 11.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.4827, allocations: 24.8 kB / 0.5364 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-06/0.4827, allocations: 0 / 0.5364 GB, free: 11.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4828, allocations: 322.1 kB / 0.5367 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.079e-05/0.4829, allocations: 23.95 kB / 0.5367 GB, free: 11.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.682e-05/0.483, allocations: 49.39 kB / 0.5367 GB, free: 11.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.4831, allocations: 82.39 kB / 0.5368 GB, free: 11.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4831, allocations: 4 kB / 0.5368 GB, free: 11.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002116/0.4833, allocations: 106.9 kB / 0.5369 GB, free: 11.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.4833, allocations: 7.891 kB / 0.5369 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.4834, allocations: 4 kB / 0.5369 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.4834, allocations: 2.438 kB / 0.5369 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.534e-05/0.4834, allocations: 20.3 kB / 0.537 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.4835, allocations: 0 / 0.537 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.827e-05/0.4835, allocations: 13.88 kB / 0.537 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.4835, allocations: 3.188 kB / 0.537 GB, free: 11.08 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 7.381e-05/0.4836, allocations: 121.9 kB / 0.5371 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.331e-05/0.4837, allocations: 5.25 kB / 0.5371 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002479/0.4839, allocations: 114.2 kB / 0.5372 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.4839, allocations: 2.969 kB / 0.5372 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.4839, allocations: 2.578 kB / 0.5372 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.4839, allocations: 1.859 kB / 0.5372 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.4841, allocations: 188.1 kB / 0.5374 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4841, allocations: 2.094 kB / 0.5374 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.328e-05/0.4842, allocations: 15.16 kB / 0.5374 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.4842, allocations: 6.125 kB / 0.5374 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.228e-06/0.4842, allocations: 0 / 0.5374 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4842, allocations: 2.938 kB / 0.5374 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4842, allocations: 3.938 kB / 0.5374 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002772/0.4845, allocations: 161.1 kB / 0.5376 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.734e-05/0.4846, allocations: 94.33 kB / 0.5377 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.4846, allocations: 0 / 0.5377 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.189e-05/0.4846, allocations: 6.938 kB / 0.5377 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.4847, allocations: 7.734 kB / 0.5377 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-06/0.4847, allocations: 2.844 kB / 0.5377 GB, free: 10.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.339e-05/0.4847, allocations: 112.3 kB / 0.5378 GB, free: 10.45 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4848, allocations: 0 / 0.5378 GB, free: 10.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005509/0.4853, allocations: 163.7 kB / 0.5379 GB, free: 10.42 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.001349/0.4867, allocations: 1.024 MB / 0.5389 GB, free: 9.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001713/0.4868, allocations: 63.42 kB / 0.539 GB, free: 9.746 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4869, allocations: 128 / 0.539 GB, free: 9.746 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.452e-05/0.4869, allocations: 40.61 kB / 0.539 GB, free: 9.738 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002345/0.4872, allocations: 23 kB / 0.5391 GB, free: 9.734 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.4883, allocations: 0.9283 MB / 0.54 GB, free: 9.172 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.4886, allocations: 0.6888 MB / 0.5406 GB, free: 8.477 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.107e-05/0.4886, allocations: 25.19 kB / 0.5407 GB, free: 8.469 MB / 394.7 MB Notification: Performance of SimCode: time 9.31e-07/0.4886, allocations: 0 / 0.5407 GB, free: 8.469 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.222/3.71, allocations: 4.244 MB / 0.5448 GB, free: 6.445 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > 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/jenkins1/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