Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.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.001247/0.001247, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.00138/0.00138, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.35/1.35, allocations: 230.6 MB / 258.3 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 47.92 kB / 378.5 MB, free: 3.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2221, allocations: 53.35 MB / 431.8 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003684/0.2258, allocations: 2.258 MB / 434.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.2269, allocations: 0.6115 MB / 434.7 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.227, allocations: 11.94 kB / 434.7 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.2271, allocations: 35.66 kB / 434.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001609/0.2273, allocations: 83.27 kB / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.2275, allocations: 67.84 kB / 434.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003052/0.2278, allocations: 270.7 kB / 435.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.228, allocations: 75.23 kB / 435.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.2282, allocations: 119.6 kB / 435.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.2283, allocations: 111.5 kB / 435.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.349e-05/0.2284, allocations: 20 kB / 435.5 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.847e-05/0.2284, allocations: 28 kB / 435.5 MB, free: 3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.311e-05/0.2285, allocations: 51.77 kB / 435.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.2286, allocations: 107.5 kB / 435.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003295/0.2289, allocations: 273.1 kB / 435.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2289, allocations: 0 / 435.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2289, allocations: 0 / 435.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.229, allocations: 0 / 435.9 MB, free: 2.578 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006949/0.2296, allocations: 467.6 kB / 436.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2297, allocations: 12.03 kB / 436.4 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.468e-05/0.2297, allocations: 4.625 kB / 436.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.342e-05/0.2298, allocations: 62.72 kB / 436.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.2299, allocations: 40.69 kB / 436.5 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.2302, allocations: 178.9 kB / 436.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.2303, allocations: 12.81 kB / 436.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.2303, allocations: 28.33 kB / 436.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.2307, allocations: 195.2 kB / 436.9 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.2307, allocations: 4 kB / 436.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.261e-05/0.2307, allocations: 8 kB / 436.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.2307, allocations: 8 kB / 436.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.231, allocations: 141.6 kB / 437.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009156/0.2319, allocations: 0.5559 MB / 437.6 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.2322, allocations: 170.5 kB / 437.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.2324, allocations: 84.83 kB / 437.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.2324, allocations: 8 kB / 437.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.2324, allocations: 34.59 kB / 437.9 MB, free: 472 kB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.332e-06/0.2324, allocations: 0 / 437.9 MB, free: 472 kB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.001891/0.2343, allocations: 0.9258 MB / 438.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.2344, allocations: 63.28 kB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.2346, allocations: 187.2 kB / 439.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.2346, allocations: 29.7 kB / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.2347, allocations: 144.8 kB / 439.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.767e-05/0.2348, allocations: 111 kB / 439.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.124e-05/0.2349, allocations: 57.64 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.235, allocations: 330.8 kB / 439.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.2352, allocations: 71.97 kB / 439.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.2353, allocations: 107.8 kB / 439.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.2356, allocations: 201 kB / 440.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2357, allocations: 0 / 440.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004962/0.2361, allocations: 287.3 kB / 440.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.2362, allocations: 7.984 kB / 440.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2362, allocations: 0 / 440.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.2363, allocations: 40.84 kB / 440.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.2366, allocations: 55.97 kB / 440.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.2381, allocations: 1.637 MB / 442.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.2382, allocations: 12.02 kB / 442.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.2382, allocations: 12 kB / 442.2 MB, free: 11.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.2384, allocations: 141.7 kB / 442.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.2384, allocations: 23.92 kB / 442.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.638e-05/0.2385, allocations: 30.66 kB / 442.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2385, allocations: 4 kB / 442.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.2385, allocations: 3.984 kB / 442.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2385, allocations: 0 / 442.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.2396, allocations: 0.7266 MB / 443.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2396, allocations: 0 / 443.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.2399, allocations: 60.06 kB / 443.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001117/0.24, allocations: 36.83 kB / 443.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.24, allocations: 7.984 kB / 443.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.2412, allocations: 1.377 MB / 444.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.2412, allocations: 7.969 kB / 444.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006818/0.2419, allocations: 494.9 kB / 445.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.2419, allocations: 23.89 kB / 445.1 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.242, allocations: 8 kB / 445.1 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.2421, allocations: 8 kB / 445.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/0.2421, allocations: 19.95 kB / 445.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.2422, allocations: 12 kB / 445.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001154/0.2423, allocations: 136.4 kB / 445.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2423, allocations: 0 / 445.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000352/0.2426, allocations: 67.94 kB / 445.3 MB, free: 8.582 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009811/0.2436, allocations: 1.016 MB / 446.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005653/0.2442, allocations: 334.7 kB / 446.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2442, allocations: 3.938 kB / 446.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003491/0.2445, allocations: 230.7 kB / 446.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.2449, allocations: 57.56 kB / 447 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00344/0.2484, allocations: 2.756 MB / 449.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000139/0.2485, allocations: 150.7 kB / 449.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.659e-05/0.2486, allocations: 22.28 kB / 449.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.2487, allocations: 75.41 kB / 450 MB, free: 3.762 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2487, allocations: 4 kB / 450 MB, free: 3.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03029/0.279, allocations: 5.701 MB / 455.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.36, allocations: 3.938 kB / 455.7 MB, free: 14.24 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.First.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.633855437976308]