Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009059/0.0009059, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.0009585/0.0009588, allocations: 183 kB / 17.21 MB, free: 6.316 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.374/1.374, allocations: 223.2 MB / 241.2 MB, free: 5.301 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002416/0.0002417, allocations: 6.125 kB / 300.9 MB, free: 5.594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.102, allocations: 50.42 MB / 351.3 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.00131/0.1034, allocations: 1.082 MB / 352.4 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.4079/0.5114, allocations: 135.4 MB / 487.8 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.022e-05/0.5115, allocations: 2.594 kB / 487.8 MB, free: 8.449 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.636e-05/0.5116, allocations: 7.922 kB / 487.8 MB, free: 8.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001624/0.5132, allocations: 253.2 kB / 488 MB, free: 8.293 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.5148, allocations: 356.7 kB / 488.4 MB, free: 8.109 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.515, allocations: 82.55 kB / 488.5 MB, free: 8.078 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.695e-05/0.5151, allocations: 3.984 kB / 488.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.5152, allocations: 34.66 kB / 488.5 MB, free: 8.059 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.5154, allocations: 30.89 kB / 488.5 MB, free: 8.051 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.5154, allocations: 6.547 kB / 488.6 MB, free: 8.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002672/0.5181, allocations: 0.7677 MB / 489.3 MB, free: 7.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.23e-05/0.5181, allocations: 15.27 kB / 489.3 MB, free: 7.801 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.596e-05/0.5182, allocations: 31.89 kB / 489.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.5193, allocations: 452.7 kB / 489.8 MB, free: 7.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5193, allocations: 0 / 489.8 MB, free: 7.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5193, allocations: 0 / 489.8 MB, free: 7.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.5193, allocations: 0 / 489.8 MB, free: 7.59 MB / 366.1 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.0008461/0.5202, allocations: 459.1 kB / 490.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/0.5203, allocations: 10.25 kB / 490.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.563e-05/0.5203, allocations: 33.5 kB / 490.3 MB, free: 7.109 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007131/0.5211, allocations: 69.78 kB / 490.4 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.5214, allocations: 184 kB / 490.5 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.5214, allocations: 0 / 490.5 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.963e-05/0.5214, allocations: 6.781 kB / 490.6 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.5217, allocations: 80.44 kB / 490.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.5217, allocations: 0 / 490.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.5217, allocations: 3.953 kB / 490.6 MB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.5217, allocations: 3.984 kB / 490.6 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00015/0.5219, allocations: 41.03 kB / 490.7 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002916/0.5222, allocations: 192.8 kB / 490.9 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003922/0.5226, allocations: 118.7 kB / 491 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.5227, allocations: 40.17 kB / 491 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006355/0.5234, allocations: 136.5 kB / 491.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.5234, allocations: 34.5 kB / 491.2 MB, free: 6.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.723e-06/0.5234, allocations: 0 / 491.2 MB, free: 6.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004823/0.5239, allocations: 116.2 kB / 491.3 MB, free: 6.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/0.524, allocations: 90.81 kB / 491.4 MB, free: 6.184 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001633/0.5242, allocations: 136.7 kB / 491.5 MB, free: 6.078 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.5242, allocations: 28.83 kB / 491.6 MB, free: 6.047 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.309e-05/0.5243, allocations: 89.45 kB / 491.6 MB, free: 5.961 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.034e-05/0.5244, allocations: 25.89 kB / 491.7 MB, free: 5.941 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.5244, allocations: 0 / 491.7 MB, free: 5.941 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.5245, allocations: 317.4 kB / 492 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.195e-05/0.5246, allocations: 31.53 kB / 492 MB, free: 5.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.5248, allocations: 45.67 kB / 492.1 MB, free: 5.582 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.815e-05/0.5249, allocations: 30.02 kB / 492.1 MB, free: 5.574 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5249, allocations: 0 / 492.1 MB, free: 5.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003839/0.5253, allocations: 109.7 kB / 492.2 MB, free: 5.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.5253, allocations: 6.125 kB / 492.2 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.5254, allocations: 0 / 492.2 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.5254, allocations: 2.812 kB / 492.2 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.773e-05/0.5255, allocations: 17.11 kB / 492.2 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.5255, allocations: 8.016 kB / 492.2 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.038e-05/0.5256, allocations: 10.19 kB / 492.2 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.5256, allocations: 3.844 kB / 492.2 MB, free: 5.504 MB / 366.1 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 0.0001177/0.5257, allocations: 116.2 kB / 492.3 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-05/0.5258, allocations: 8.5 kB / 492.4 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003144/0.5262, allocations: 113 kB / 492.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.5262, allocations: 0 / 492.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.5262, allocations: 1.75 kB / 492.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.507e-06/0.5262, allocations: 7.953 kB / 492.5 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002038/0.5264, allocations: 186.1 kB / 492.7 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.5264, allocations: 6.781 kB / 492.7 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.5266, allocations: 8.031 kB / 492.7 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.5266, allocations: 2.906 kB / 492.7 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.5266, allocations: 3.984 kB / 492.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.5266, allocations: 2.5 kB / 492.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.5266, allocations: 0.6875 kB / 492.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004802/0.5271, allocations: 163.8 kB / 492.8 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.872e-05/0.5272, allocations: 94.19 kB / 492.9 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.5273, allocations: 0.6875 kB / 492.9 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.57e-05/0.5273, allocations: 10.14 kB / 492.9 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.355e-05/0.5274, allocations: 6.219 kB / 493 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.5274, allocations: 2.844 kB / 493 MB, free: 4.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001236/0.5276, allocations: 115.9 kB / 493.1 MB, free: 4.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5276, allocations: 4.062 kB / 493.1 MB, free: 4.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008436/0.5284, allocations: 157.6 kB / 493.2 MB, free: 4.773 MB / 366.1 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.00207/0.5305, allocations: 0.9591 MB / 494.2 MB, free: 4.031 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000247/0.5308, allocations: 60.34 kB / 494.2 MB, free: 4.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5308, allocations: 0 / 494.2 MB, free: 4.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.5309, allocations: 37.06 kB / 494.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.5313, allocations: 26.23 kB / 494.3 MB, free: 4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.5332, allocations: 0.8981 MB / 495.2 MB, free: 3.379 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.5336, allocations: 0.6876 MB / 495.9 MB, free: 2.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.5337, allocations: 16.55 kB / 495.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.747e-05/0.5337, allocations: 23.05 kB / 495.9 MB, free: 2.656 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5338, allocations: 0 / 495.9 MB, free: 2.656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.558, allocations: 5.807 MB / 0.49 GB, free: 15.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002759/0.5584, allocations: 244.2 kB / 0.4902 GB, free: 15.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.055/2.614, allocations: 0 / 0.4902 GB, free: 15.5 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat