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.001254/0.001254, allocations: 110 kB / 20.43 MB, free: 1.453 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.001399/0.001399, allocations: 212.2 kB / 23.74 MB, free: 4.66 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.385/1.385, allocations: 230.5 MB / 257.4 MB, free: 8.012 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 63.89 kB / 377.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2221, allocations: 53.4 MB / 431.2 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00281/0.2249, allocations: 1.716 MB / 432.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009563/0.2259, allocations: 0.5571 MB / 433.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.081e-05/0.2259, allocations: 11.94 kB / 433.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.715e-05/0.226, allocations: 11.86 kB / 433.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.2262, allocations: 23.78 kB / 433.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002107/0.2264, allocations: 63.86 kB / 433.6 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001731/0.2266, allocations: 99.69 kB / 433.6 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2267, allocations: 21.3 kB / 433.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.2268, allocations: 51.78 kB / 433.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.001e-05/0.2269, allocations: 43.72 kB / 433.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.2269, allocations: 8 kB / 433.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.481e-05/0.2269, allocations: 19.98 kB / 433.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.493e-05/0.227, allocations: 23.91 kB / 433.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.227, allocations: 35.75 kB / 433.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.2272, allocations: 95.88 kB / 433.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.2272, allocations: 3.984 kB / 433.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2272, allocations: 0 / 433.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.2272, allocations: 0 / 433.9 MB, free: 3.953 MB / 334.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.0005368/0.2278, allocations: 337.9 kB / 434.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.2278, allocations: 12.03 kB / 434.3 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.884e-05/0.2278, allocations: 34.75 kB / 434.3 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.228, allocations: 24.83 kB / 434.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.2282, allocations: 154.2 kB / 434.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.2282, allocations: 8.375 kB / 434.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.867e-05/0.2282, allocations: 7.938 kB / 434.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.2284, allocations: 84.69 kB / 434.6 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.567e-06/0.2284, allocations: 4 kB / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.2284, allocations: 0 / 434.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.2284, allocations: 4 kB / 434.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.2285, allocations: 39.97 kB / 434.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000524/0.2291, allocations: 379 kB / 435 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.2292, allocations: 70.52 kB / 435.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.833e-05/0.2293, allocations: 28.89 kB / 435.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.2293, allocations: 4 kB / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.2293, allocations: 30.56 kB / 435.1 MB, free: 2.617 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/0.2293, allocations: 0 / 435.1 MB, free: 2.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000271/0.2296, allocations: 97.75 kB / 435.2 MB, free: 2.516 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.2296, allocations: 59.41 kB / 435.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.2298, allocations: 150.4 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.2298, allocations: 25.7 kB / 435.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.2299, allocations: 104.1 kB / 435.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.2299, allocations: 23.94 kB / 435.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.2299, allocations: 21.7 kB / 435.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.2301, allocations: 322.8 kB / 435.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.796e-05/0.2301, allocations: 20 kB / 435.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.36e-05/0.2302, allocations: 27.97 kB / 436 MB, free: 1.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.2303, allocations: 48.84 kB / 436 MB, free: 1.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2303, allocations: 0 / 436 MB, free: 1.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001639/0.2305, allocations: 93.55 kB / 436.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.2305, allocations: 4 kB / 436.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2305, allocations: 0 / 436.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.2305, allocations: 7.875 kB / 436.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.2307, allocations: 39.97 kB / 436.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.2307, allocations: 4 kB / 436.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.422e-05/0.2308, allocations: 7.953 kB / 436.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.2308, allocations: 4 kB / 436.2 MB, free: 1.508 MB / 334.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 8.844e-05/0.2309, allocations: 117.8 kB / 436.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.284e-05/0.2309, allocations: 11.89 kB / 436.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.625e-05/0.2309, allocations: 8.406 kB / 436.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.2309, allocations: 4 kB / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.2309, allocations: 0 / 436.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2309, allocations: 4 kB / 436.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.2311, allocations: 164.7 kB / 436.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2311, allocations: 3.938 kB / 436.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.2313, allocations: 27.97 kB / 436.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2313, allocations: 0 / 436.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.2313, allocations: 3.938 kB / 436.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.2313, allocations: 4 kB / 436.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.2313, allocations: 3.938 kB / 436.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002749/0.2316, allocations: 203.5 kB / 436.7 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.141e-05/0.2316, allocations: 11.83 kB / 436.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.2316, allocations: 4 kB / 436.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.761e-05/0.2317, allocations: 0 / 436.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.933e-05/0.2317, allocations: 4.109 kB / 436.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.2317, allocations: 8 kB / 436.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.498e-05/0.2318, allocations: 114.2 kB / 436.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2318, allocations: 0 / 436.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002225/0.232, allocations: 20.02 kB / 436.9 MB, free: 0.7383 MB / 334.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.0005433/0.2326, allocations: 0.728 MB / 437.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001563/0.2327, allocations: 43.98 kB / 437.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2327, allocations: 64 / 437.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.156e-05/0.2328, allocations: 31.92 kB / 437.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.2331, allocations: 22.73 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.2349, allocations: 1.579 MB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.2352, allocations: 0.7041 MB / 440 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.135e-05/0.2352, allocations: 11.97 kB / 440 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.967e-05/0.2353, allocations: 31.42 kB / 440 MB, free: 13.46 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2353, allocations: 0 / 440 MB, free: 13.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03045/0.2657, allocations: 2.483 MB / 442.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.94, allocations: 11.12 kB / 442.5 MB, free: 11.06 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.24365287902765]