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.001278/0.001278, allocations: 177 kB / 16.72 MB, free: 5.078 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.297/1.297, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007973/0.0007973, allocations: 86.34 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003517, allocations: 8 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2734, allocations: 47.58 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002287/0.2758, allocations: 1.964 MB / 377.1 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008894/0.2767, allocations: 0.593 MB / 377.6 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.2768, allocations: 8.031 kB / 377.7 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.277, allocations: 24.16 kB / 377.7 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.2771, allocations: 63.22 kB / 377.7 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001798/0.2773, allocations: 39.2 kB / 377.8 MB, free: 43.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002733/0.2776, allocations: 249.8 kB / 378 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.2778, allocations: 91.36 kB / 378.1 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.2779, allocations: 93.39 kB / 378.2 MB, free: 43.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.2781, allocations: 97.58 kB / 378.3 MB, free: 43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.189e-05/0.2781, allocations: 10.41 kB / 378.3 MB, free: 43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.809e-05/0.2782, allocations: 11.53 kB / 378.3 MB, free: 43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.203e-05/0.2782, allocations: 34.06 kB / 378.4 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.2783, allocations: 129.1 kB / 378.5 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.2785, allocations: 190.5 kB / 378.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2786, allocations: 7.938 kB / 378.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.2786, allocations: 1.125 kB / 378.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.2786, allocations: 0 / 378.7 MB, free: 42.73 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.000595/0.2792, allocations: 492.1 kB / 379.2 MB, free: 42.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.2792, allocations: 10.09 kB / 379.2 MB, free: 42.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.852e-05/0.2793, allocations: 32.91 kB / 379.2 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.2795, allocations: 238.6 kB / 379.4 MB, free: 42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.2796, allocations: 17.7 kB / 379.4 MB, free: 41.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.39e-05/0.2796, allocations: 23.91 kB / 379.5 MB, free: 41.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003353/0.28, allocations: 198.9 kB / 379.7 MB, free: 41.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.28, allocations: 4.938 kB / 379.7 MB, free: 41.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.28, allocations: 10.41 kB / 379.7 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.28, allocations: 5.312 kB / 379.7 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002625/0.2803, allocations: 142.9 kB / 379.8 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008185/0.2811, allocations: 0.6382 MB / 380.5 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.2814, allocations: 178 kB / 380.6 MB, free: 41.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.2816, allocations: 105 kB / 380.7 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.2816, allocations: 6.219 kB / 380.7 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.2817, allocations: 39.84 kB / 380.8 MB, free: 41.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.434e-06/0.2817, allocations: 0 / 380.8 MB, free: 41.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001813/0.2835, allocations: 1.079 MB / 381.9 MB, free: 40.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.545e-05/0.2835, allocations: 62.72 kB / 381.9 MB, free: 40.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.2837, allocations: 179.3 kB / 382.1 MB, free: 40.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.2837, allocations: 31.89 kB / 382.1 MB, free: 40 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.966e-05/0.2838, allocations: 145.1 kB / 382.3 MB, free: 39.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.199e-05/0.2838, allocations: 112.2 kB / 382.4 MB, free: 39.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.2839, allocations: 5.281 kB / 382.4 MB, free: 39.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.95e-05/0.2839, allocations: 335.7 kB / 382.7 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.2841, allocations: 66.19 kB / 382.8 MB, free: 39.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.2842, allocations: 111.1 kB / 382.9 MB, free: 39.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.2846, allocations: 201.4 kB / 383.1 MB, free: 39.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2846, allocations: 1.469 kB / 383.1 MB, free: 39.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004893/0.2851, allocations: 298.6 kB / 383.4 MB, free: 39.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.2851, allocations: 4.594 kB / 383.4 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.2851, allocations: 0.9375 kB / 383.4 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/0.2853, allocations: 42.7 kB / 383.4 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.2856, allocations: 61.59 kB / 383.5 MB, free: 39.01 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.2867, allocations: 1.575 MB / 385.1 MB, free: 37.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.2869, allocations: 9.781 kB / 385.1 MB, free: 37.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.2869, allocations: 10.19 kB / 385.1 MB, free: 37.45 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.000118/0.287, allocations: 145.6 kB / 385.2 MB, free: 37.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/0.2871, allocations: 25.62 kB / 385.2 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.2871, allocations: 30.66 kB / 385.3 MB, free: 37.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.2871, allocations: 3.312 kB / 385.3 MB, free: 37.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2871, allocations: 1.125 kB / 385.3 MB, free: 37.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.2871, allocations: 3.984 kB / 385.3 MB, free: 37.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.2882, allocations: 0.7872 MB / 386.1 MB, free: 36.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2882, allocations: 1.125 kB / 386.1 MB, free: 36.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002627/0.2885, allocations: 62.03 kB / 386.1 MB, free: 36.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.2886, allocations: 38.42 kB / 386.2 MB, free: 36.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.2886, allocations: 6.875 kB / 386.2 MB, free: 36.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008748/0.2895, allocations: 1.386 MB / 387.6 MB, free: 35.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2895, allocations: 1.125 kB / 387.6 MB, free: 35.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006564/0.2902, allocations: 494.9 kB / 388 MB, free: 34.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.29e-05/0.2902, allocations: 95.36 kB / 388.1 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.2903, allocations: 11.31 kB / 388.1 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.2904, allocations: 16.72 kB / 388.2 MB, free: 34.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.23e-05/0.2905, allocations: 26.59 kB / 388.2 MB, free: 34.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.2905, allocations: 6.594 kB / 388.2 MB, free: 34.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000106/0.2906, allocations: 127.4 kB / 388.3 MB, free: 34.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2906, allocations: 1.062 kB / 388.3 MB, free: 34.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003886/0.291, allocations: 64.31 kB / 388.4 MB, free: 34.59 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.0001136/0.2912, allocations: 111 kB / 388.5 MB, free: 34.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005698/0.2917, allocations: 341.8 kB / 388.8 MB, free: 34.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2917, allocations: 0 / 388.8 MB, free: 34.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002748/0.292, allocations: 243.2 kB / 389.1 MB, free: 33.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.2925, allocations: 43.62 kB / 389.1 MB, free: 33.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.2935, allocations: 0.9076 MB / 390 MB, free: 32.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001506/0.2937, allocations: 0.7522 MB / 390.8 MB, free: 32.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.895e-05/0.2938, allocations: 23.44 kB / 390.8 MB, free: 32.18 MB / 298.7 MB Notification: Performance of SimCode: time 3.6e-07/0.2938, allocations: 0 / 390.8 MB, free: 32.18 MB / 298.7 MB Notification: Performance of Templates: time 0.004498/0.2983, allocations: 3.811 MB / 394.6 MB, free: 28.38 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