Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001729/0.001729, allocations: 120.1 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002076/0.002076, allocations: 214.2 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.671/1.671, allocations: 230.5 MB / 254.7 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 63.91 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1503, allocations: 53.37 MB / 427 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003753/0.1541, allocations: 1.715 MB / 428.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.1554, allocations: 0.5416 MB / 429.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001109/0.1555, allocations: 7.938 kB / 429.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.1557, allocations: 11.86 kB / 429.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.1559, allocations: 27.78 kB / 429.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.1562, allocations: 59.86 kB / 429.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002255/0.1564, allocations: 99.69 kB / 429.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.1565, allocations: 25.11 kB / 429.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001913/0.1567, allocations: 55.72 kB / 429.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.1568, allocations: 43.78 kB / 429.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.1569, allocations: 7.938 kB / 429.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.254e-05/0.1569, allocations: 12 kB / 429.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.335e-05/0.157, allocations: 19.92 kB / 429.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.88e-05/0.157, allocations: 43.72 kB / 429.7 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.1573, allocations: 95.45 kB / 429.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1573, allocations: 0 / 429.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1573, allocations: 0 / 429.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.1573, allocations: 0 / 429.8 MB, free: 1.879 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008653/0.1582, allocations: 415 kB / 430.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.713e-05/0.1582, allocations: 16.02 kB / 430.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.937e-05/0.1583, allocations: 192 / 430.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.373e-05/0.1583, allocations: 38.75 kB / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002193/0.1585, allocations: 24.83 kB / 430.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.159, allocations: 204.6 kB / 430.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.159, allocations: 20.12 kB / 430.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.67e-05/0.1591, allocations: 4 kB / 430.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.1594, allocations: 77.66 kB / 430.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1594, allocations: 0 / 430.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.853e-05/0.1594, allocations: 8 kB / 430.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.1594, allocations: 0 / 430.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001512/0.1595, allocations: 39.97 kB / 430.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008262/0.1604, allocations: 415.9 kB / 431 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.1606, allocations: 70.5 kB / 431.1 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.922e-05/0.1607, allocations: 28.89 kB / 431.1 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.1607, allocations: 0 / 431.1 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.1607, allocations: 34.56 kB / 431.2 MB, free: 336 kB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.493e-06/0.1607, allocations: 4 kB / 431.2 MB, free: 332 kB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003603/0.1611, allocations: 93.56 kB / 431.3 MB, free: 232 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.1611, allocations: 55.34 kB / 431.3 MB, free: 164 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.1613, allocations: 149.4 kB / 431.5 MB, free: 0 / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.1614, allocations: 29.7 kB / 431.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.29e-05/0.1614, allocations: 104.1 kB / 431.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.1615, allocations: 23.94 kB / 431.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.1615, allocations: 25.7 kB / 431.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1617, allocations: 322.8 kB / 432 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.931e-05/0.1618, allocations: 20 kB / 432 MB, free: 15.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.957e-05/0.1618, allocations: 19.98 kB / 432 MB, free: 15.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.162, allocations: 48.84 kB / 432 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.162, allocations: 0 / 432 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000205/0.1622, allocations: 85.56 kB / 432.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.1622, allocations: 11.94 kB / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1622, allocations: 4 kB / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1622, allocations: 3.938 kB / 432.1 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.1625, allocations: 39.97 kB / 432.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1625, allocations: 0 / 432.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.69e-05/0.1625, allocations: 7.953 kB / 432.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.1625, allocations: 0 / 432.2 MB, free: 15.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 7 * 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 0.0001123/0.1626, allocations: 117.8 kB / 432.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.39e-05/0.1627, allocations: 11.89 kB / 432.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.142e-05/0.1627, allocations: 16.31 kB / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1627, allocations: 0 / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1627, allocations: 0 / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1627, allocations: 0 / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.163, allocations: 201.5 kB / 432.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.163, allocations: 0 / 432.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.1631, allocations: 31.97 kB / 432.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.1631, allocations: 0 / 432.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.1631, allocations: 256 / 432.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.1631, allocations: 7.938 kB / 432.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1631, allocations: 4 kB / 432.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003379/0.1635, allocations: 203.4 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.416e-05/0.1636, allocations: 89.03 kB / 432.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.1636, allocations: 0 / 432.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.641e-05/0.1637, allocations: 0 / 432.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/0.1637, allocations: 7.984 kB / 432.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.1637, allocations: 0 / 432.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.1638, allocations: 119.3 kB / 433 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1638, allocations: 0 / 433 MB, free: 14.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000226/0.164, allocations: 15.95 kB / 433 MB, free: 14.33 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * 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 (5): * Single equations (assignments): 5 * 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.0006179/0.1646, allocations: 0.728 MB / 433.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001897/0.1648, allocations: 51.98 kB / 433.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1648, allocations: 0 / 433.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.498e-05/0.1649, allocations: 23.92 kB / 433.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.1653, allocations: 30.55 kB / 433.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.1674, allocations: 1.586 MB / 435.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.1678, allocations: 0.7041 MB / 436.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.471e-05/0.1678, allocations: 8.234 kB / 436.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.294e-05/0.1679, allocations: 35.36 kB / 436.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1679, allocations: 0 / 436.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.19, allocations: 2.374 MB / 438.5 MB, free: 8.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.287/8.477, allocations: 4.062 kB / 438.5 MB, free: 8.727 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.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: 11.582171084999572]