Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.338/1.338, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 51.94 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2206, allocations: 53.36 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00275/0.2234, allocations: 1.712 MB / 433.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009707/0.2243, allocations: 0.561 MB / 434.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.373e-05/0.2244, allocations: 11.88 kB / 434.2 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.79e-05/0.2245, allocations: 11.86 kB / 434.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.2247, allocations: 19.8 kB / 434.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002141/0.2249, allocations: 63.86 kB / 434.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001893/0.2251, allocations: 99.69 kB / 434.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.2252, allocations: 21.3 kB / 434.4 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.2253, allocations: 59.77 kB / 434.5 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.229e-05/0.2254, allocations: 39.78 kB / 434.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.789e-05/0.2255, allocations: 4 kB / 434.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.914e-05/0.2255, allocations: 16 kB / 434.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.842e-05/0.2256, allocations: 19.92 kB / 434.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.021e-05/0.2256, allocations: 43.72 kB / 434.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.2258, allocations: 94.89 kB / 434.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2258, allocations: 0 / 434.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2258, allocations: 0 / 434.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.2258, allocations: 0 / 434.7 MB, free: 4.098 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.0005408/0.2264, allocations: 338.8 kB / 435 MB, free: 3.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.2264, allocations: 12.03 kB / 435 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.218e-05/0.2264, allocations: 192 / 435 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.902e-05/0.2265, allocations: 42.73 kB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.2266, allocations: 20.84 kB / 435.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.2268, allocations: 149.1 kB / 435.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.2268, allocations: 20.11 kB / 435.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.2269, allocations: 4 kB / 435.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.227, allocations: 79.3 kB / 435.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.227, allocations: 0 / 435.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.2271, allocations: 8 kB / 435.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.2271, allocations: 3.984 kB / 435.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.2272, allocations: 39.98 kB / 435.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000548/0.2277, allocations: 383 kB / 435.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.2279, allocations: 70.41 kB / 435.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.272e-05/0.2279, allocations: 28.89 kB / 435.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.455e-05/0.228, allocations: 0 / 435.9 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.228, allocations: 34.56 kB / 435.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 8.11e-07/0.228, allocations: 0 / 435.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002746/0.2283, allocations: 101.5 kB / 436 MB, free: 2.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.2283, allocations: 55.34 kB / 436 MB, free: 2.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.2284, allocations: 146.4 kB / 436.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.2285, allocations: 25.7 kB / 436.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.2285, allocations: 108.1 kB / 436.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.2285, allocations: 19.94 kB / 436.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.015e-05/0.2286, allocations: 25.72 kB / 436.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2287, allocations: 322.8 kB / 436.7 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.076e-05/0.2288, allocations: 23.98 kB / 436.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.257e-05/0.2288, allocations: 19.98 kB / 436.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.2289, allocations: 48.98 kB / 436.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2289, allocations: 4 kB / 436.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001632/0.2291, allocations: 85.56 kB / 436.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.2291, allocations: 15.92 kB / 436.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.2291, allocations: 0 / 436.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.2291, allocations: 4 kB / 436.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002178/0.2294, allocations: 39.97 kB / 436.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.2294, allocations: 0 / 436.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.164e-05/0.2294, allocations: 7.953 kB / 436.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.2294, allocations: 0 / 436.9 MB, free: 1.648 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.876e-05/0.2295, allocations: 113.8 kB / 437 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.189e-05/0.2295, allocations: 15.89 kB / 437 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.2296, allocations: 16.39 kB / 437.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.2296, allocations: 0 / 437.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2296, allocations: 0 / 437.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.2296, allocations: 0 / 437.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.2298, allocations: 172.6 kB / 437.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.2298, allocations: 0 / 437.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.2299, allocations: 19.98 kB / 437.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.2299, allocations: 4 kB / 437.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.2299, allocations: 3.984 kB / 437.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.2299, allocations: 12.12 kB / 437.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2299, allocations: 0 / 437.3 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.2302, allocations: 203.4 kB / 437.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.281e-05/0.2302, allocations: 15.91 kB / 437.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.2303, allocations: 3.984 kB / 437.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.912e-05/0.2303, allocations: 4 kB / 437.5 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/0.2304, allocations: 7.922 kB / 437.5 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.2304, allocations: 4.062 kB / 437.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.712e-05/0.2305, allocations: 112.8 kB / 437.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2305, allocations: 0 / 437.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002205/0.2307, allocations: 15.95 kB / 437.6 MB, free: 0.8711 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.0005325/0.2312, allocations: 0.7358 MB / 438.4 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.2314, allocations: 43.98 kB / 438.4 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2314, allocations: 0 / 438.4 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.408e-05/0.2314, allocations: 23.92 kB / 438.4 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.2317, allocations: 27.11 kB / 438.5 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001794/0.2335, allocations: 1.583 MB / 440 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.2339, allocations: 0.7002 MB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.018e-05/0.2339, allocations: 7.984 kB / 440.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.746e-05/0.234, allocations: 31.38 kB / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.234, allocations: 0 / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.2568, allocations: 2.521 MB / 443.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/10.65, allocations: 17.95 kB / 443.3 MB, free: 11.2 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 12.981935002026148]