Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 177.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.325/1.325, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007538/0.0007539, allocations: 100.7 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000334/0.0003342, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2198, allocations: 47.58 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.001977/0.2218, allocations: 1.964 MB / 376.5 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008979/0.2228, allocations: 0.5896 MB / 377.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/0.223, allocations: 8.875 kB / 377.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.2231, allocations: 27.16 kB / 377.1 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.2232, allocations: 68.23 kB / 377.2 MB, free: 43.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001717/0.2234, allocations: 38.62 kB / 377.2 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002462/0.2237, allocations: 252.6 kB / 377.5 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.2238, allocations: 80.64 kB / 377.6 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.224, allocations: 96.5 kB / 377.7 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.2242, allocations: 88.69 kB / 377.7 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.2242, allocations: 15.53 kB / 377.8 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.367e-05/0.2242, allocations: 11.06 kB / 377.8 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.613e-05/0.2243, allocations: 39.19 kB / 377.8 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.119e-05/0.2243, allocations: 67.36 kB / 377.9 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.2245, allocations: 186.4 kB / 378.1 MB, free: 42.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2245, allocations: 1.125 kB / 378.1 MB, free: 42.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2245, allocations: 0 / 378.1 MB, free: 42.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.2245, allocations: 0 / 378.1 MB, free: 42.77 MB / 298.7 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.0005687/0.2251, allocations: 494.9 kB / 378.5 MB, free: 42.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.2251, allocations: 9.75 kB / 378.6 MB, free: 42.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.625e-05/0.2252, allocations: 27.81 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/0.2254, allocations: 242.1 kB / 378.8 MB, free: 42.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.2255, allocations: 16.66 kB / 378.8 MB, free: 42.03 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.2255, allocations: 22.84 kB / 378.9 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.2259, allocations: 187.4 kB / 379 MB, free: 41.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.2259, allocations: 12.83 kB / 379.1 MB, free: 41.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.2259, allocations: 14.59 kB / 379.1 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.2259, allocations: 5.094 kB / 379.1 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002686/0.2262, allocations: 142.2 kB / 379.2 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008608/0.2271, allocations: 0.6471 MB / 379.9 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002735/0.2274, allocations: 177.7 kB / 380 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.2275, allocations: 99.95 kB / 380.1 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.2275, allocations: 7.375 kB / 380.1 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.277e-05/0.2276, allocations: 39.89 kB / 380.2 MB, free: 41.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.2276, allocations: 0 / 380.2 MB, free: 41.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001654/0.2292, allocations: 1.075 MB / 381.3 MB, free: 40.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.251e-05/0.2293, allocations: 62.55 kB / 381.3 MB, free: 40.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.2294, allocations: 184.3 kB / 381.5 MB, free: 40.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.2294, allocations: 31.08 kB / 381.5 MB, free: 40.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.853e-05/0.2295, allocations: 141.6 kB / 381.7 MB, free: 39.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.963e-05/0.2295, allocations: 111.8 kB / 381.8 MB, free: 39.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.799e-06/0.2296, allocations: 5.188 kB / 381.8 MB, free: 39.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.818e-05/0.2296, allocations: 331.5 kB / 382.1 MB, free: 39.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.2297, allocations: 75.16 kB / 382.2 MB, free: 39.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001463/0.2299, allocations: 110.9 kB / 382.3 MB, free: 39.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.2301, allocations: 86.11 kB / 382.4 MB, free: 39.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2301, allocations: 0 / 382.4 MB, free: 39.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004362/0.2305, allocations: 300.4 kB / 382.7 MB, free: 39.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.2305, allocations: 4.781 kB / 382.7 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2305, allocations: 1.156 kB / 382.7 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001733/0.2307, allocations: 42.86 kB / 382.7 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.231, allocations: 57.16 kB / 382.8 MB, free: 39.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/0.232, allocations: 1.567 MB / 384.3 MB, free: 37.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.2322, allocations: 16.73 kB / 384.3 MB, free: 37.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.2322, allocations: 11.19 kB / 384.4 MB, free: 37.57 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.2323, allocations: 141.1 kB / 384.5 MB, free: 37.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/0.2324, allocations: 26.3 kB / 384.5 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.868e-05/0.2324, allocations: 34.3 kB / 384.6 MB, free: 37.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.2324, allocations: 4.219 kB / 384.6 MB, free: 37.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.2324, allocations: 1.375 kB / 384.6 MB, free: 37.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2324, allocations: 4 kB / 384.6 MB, free: 37.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009436/0.2334, allocations: 0.7837 MB / 385.3 MB, free: 36.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2334, allocations: 0.9062 kB / 385.3 MB, free: 36.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.2337, allocations: 62.44 kB / 385.4 MB, free: 36.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001105/0.2338, allocations: 33.27 kB / 385.4 MB, free: 36.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.2338, allocations: 6.406 kB / 385.4 MB, free: 36.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007487/0.2346, allocations: 1.379 MB / 386.8 MB, free: 35.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2346, allocations: 5.094 kB / 386.8 MB, free: 35.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006046/0.2352, allocations: 490.3 kB / 387.3 MB, free: 34.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.2352, allocations: 99.5 kB / 387.4 MB, free: 34.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.2353, allocations: 10.62 kB / 387.4 MB, free: 34.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.2354, allocations: 9.375 kB / 387.4 MB, free: 34.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.045e-05/0.2355, allocations: 26.52 kB / 387.5 MB, free: 34.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.2355, allocations: 13.69 kB / 387.5 MB, free: 34.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.957e-05/0.2356, allocations: 140.5 kB / 387.6 MB, free: 34.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2356, allocations: 0 / 387.6 MB, free: 34.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000346/0.2359, allocations: 65.12 kB / 387.7 MB, free: 34.7 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001031/0.236, allocations: 102.3 kB / 387.8 MB, free: 34.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005655/0.2366, allocations: 342.2 kB / 388.1 MB, free: 34.4 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2366, allocations: 0 / 388.1 MB, free: 34.4 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.2369, allocations: 254 kB / 388.3 MB, free: 34.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.2374, allocations: 37.27 kB / 388.4 MB, free: 34.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009899/0.2384, allocations: 0.9054 MB / 389.3 MB, free: 33.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.2385, allocations: 0.7522 MB / 390 MB, free: 32.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.513e-05/0.2386, allocations: 23.44 kB / 390.1 MB, free: 32.5 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2386, allocations: 0 / 390.1 MB, free: 32.5 MB / 298.7 MB Notification: Performance of Templates: time 0.004098/0.2427, allocations: 3.81 MB / 393.9 MB, free: 28.7 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches