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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 112.4 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 190.4 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 47.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2385, allocations: 52.19 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002372/0.2409, allocations: 1.374 MB / 424 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.3838/0.6247, allocations: 149.5 MB / 0.5601 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.867e-05/0.6247, allocations: 4.344 kB / 0.5601 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 3.961e-05/0.6248, allocations: 8.344 kB / 0.5601 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001134/0.6259, allocations: 390 kB / 0.5605 GB, free: 13.66 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.627, allocations: 0.5134 MB / 0.561 GB, free: 13.58 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000123/0.6271, allocations: 72.03 kB / 0.561 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.402e-05/0.6271, allocations: 2.812 kB / 0.561 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.264e-05/0.6272, allocations: 36.56 kB / 0.5611 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.175e-05/0.6273, allocations: 36.91 kB / 0.5611 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.6273, allocations: 3.062 kB / 0.5611 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.6289, allocations: 1.14 MB / 0.5622 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.732e-05/0.6289, allocations: 20.27 kB / 0.5623 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.39e-05/0.629, allocations: 24.8 kB / 0.5623 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009056/0.6299, allocations: 0.6943 MB / 0.563 GB, free: 13.4 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.6299, allocations: 2.656 kB / 0.563 GB, free: 13.4 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6299, allocations: 0 / 0.563 GB, free: 13.4 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.6299, allocations: 3.938 kB / 0.563 GB, free: 13.39 MB / 462.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.0005933/0.6305, allocations: 388 kB / 0.5633 GB, free: 13.06 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.6305, allocations: 10.72 kB / 0.5633 GB, free: 13.06 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.116e-05/0.6305, allocations: 30.75 kB / 0.5634 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004177/0.631, allocations: 74.92 kB / 0.5634 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.6311, allocations: 147.6 kB / 0.5636 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.6311, allocations: 7.562 kB / 0.5636 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.6311, allocations: 2.781 kB / 0.5636 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.6313, allocations: 75.98 kB / 0.5637 GB, free: 12.83 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.6313, allocations: 0 / 0.5637 GB, free: 12.83 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.6313, allocations: 0 / 0.5637 GB, free: 12.83 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.6313, allocations: 3.938 kB / 0.5637 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.062e-05/0.6314, allocations: 41.42 kB / 0.5637 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001902/0.6316, allocations: 167.5 kB / 0.5639 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.6319, allocations: 110.1 kB / 0.564 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.809e-05/0.6319, allocations: 36.94 kB / 0.564 GB, free: 12.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004551/0.6324, allocations: 61.39 kB / 0.5641 GB, free: 12.59 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.6324, allocations: 40.27 kB / 0.5641 GB, free: 12.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.6324, allocations: 0 / 0.5641 GB, free: 12.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003183/0.6327, allocations: 121 kB / 0.5642 GB, free: 12.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.6328, allocations: 79.2 kB / 0.5643 GB, free: 12.41 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.6329, allocations: 144.7 kB / 0.5644 GB, free: 12.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.6329, allocations: 26.91 kB / 0.5645 GB, free: 12.27 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.681e-05/0.633, allocations: 91.84 kB / 0.5645 GB, free: 12.19 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/0.633, allocations: 24.77 kB / 0.5646 GB, free: 12.17 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.633, allocations: 24.34 kB / 0.5646 GB, free: 12.16 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.6332, allocations: 316.4 kB / 0.5649 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.292e-05/0.6333, allocations: 27.02 kB / 0.5649 GB, free: 11.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.721e-05/0.6334, allocations: 51.77 kB / 0.565 GB, free: 11.81 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.6335, allocations: 88.73 kB / 0.5651 GB, free: 11.77 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.6335, allocations: 0 / 0.5651 GB, free: 11.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002162/0.6337, allocations: 108.6 kB / 0.5652 GB, free: 11.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.6337, allocations: 5 kB / 0.5652 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.6337, allocations: 3.609 kB / 0.5652 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.6338, allocations: 0 / 0.5652 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.844e-05/0.6338, allocations: 21.22 kB / 0.5652 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.6338, allocations: 0 / 0.5652 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.355e-05/0.6339, allocations: 4.969 kB / 0.5652 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.6339, allocations: 6.656 kB / 0.5652 GB, free: 11.72 MB / 462.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.332e-05/0.634, allocations: 118.1 kB / 0.5653 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.911e-05/0.634, allocations: 8.859 kB / 0.5653 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002191/0.6342, allocations: 108.4 kB / 0.5654 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.6342, allocations: 3.938 kB / 0.5654 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.6343, allocations: 4 kB / 0.5654 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.6343, allocations: 5.625 kB / 0.5654 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.6344, allocations: 154 kB / 0.5656 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.6344, allocations: 4 kB / 0.5656 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.6345, allocations: 11.61 kB / 0.5656 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.6345, allocations: 2.969 kB / 0.5656 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.6345, allocations: 3.5 kB / 0.5656 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.6345, allocations: 2.531 kB / 0.5656 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.6345, allocations: 2.844 kB / 0.5656 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003058/0.6348, allocations: 163.7 kB / 0.5658 GB, free: 11.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.6348, allocations: 25.62 kB / 0.5658 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.6348, allocations: 1.203 kB / 0.5658 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.137e-05/0.6349, allocations: 2.562 kB / 0.5658 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.273e-05/0.6349, allocations: 6.078 kB / 0.5658 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.6349, allocations: 6.469 kB / 0.5658 GB, free: 11.29 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.365e-05/0.635, allocations: 113 kB / 0.5659 GB, free: 11.21 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.635, allocations: 0 / 0.5659 GB, free: 11.21 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.6355, allocations: 163.6 kB / 0.5661 GB, free: 11.18 MB / 462.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00139/0.6368, allocations: 1.019 MB / 0.5671 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000193/0.637, allocations: 63.25 kB / 0.5671 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.637, allocations: 0 / 0.5671 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 6.309e-05/0.6371, allocations: 27.47 kB / 0.5672 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.6373, allocations: 32.73 kB / 0.5672 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001842/0.6392, allocations: 1.742 MB / 0.5689 GB, free: 9.191 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.6395, allocations: 0.6876 MB / 0.5696 GB, free: 8.496 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.65e-05/0.6396, allocations: 18.17 kB / 0.5696 GB, free: 8.488 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.6396, allocations: 20.94 kB / 0.5696 GB, free: 8.48 MB / 462.1 MB Notification: Performance of SimCode: time 3.11e-07/0.6396, allocations: 0 / 0.5696 GB, free: 8.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03277/0.6724, allocations: 6.438 MB / 0.5759 GB, free: 6.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.41, allocations: 4.688 kB / 0.5759 GB, free: 6.59 MB / 462.1 MB " [Timeout remaining time 648] (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/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 --stepSize=0.00019992 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.775957932928577]