Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 115.7 kB / 17.74 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 189.6 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 51.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2799, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003416/0.2834, allocations: 2.345 MB / 403.7 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009621/0.2844, allocations: 0.5804 MB / 404.3 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001597/0.2845, allocations: 4 kB / 404.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.2847, allocations: 39.66 kB / 404.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000134/0.2849, allocations: 67.34 kB / 404.4 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.2851, allocations: 55.88 kB / 404.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002975/0.2854, allocations: 262.8 kB / 404.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.2857, allocations: 80.38 kB / 404.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.2859, allocations: 107.6 kB / 404.9 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.286, allocations: 103.5 kB / 405 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.978e-05/0.2861, allocations: 20 kB / 405 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.095e-05/0.2861, allocations: 20 kB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.126e-05/0.2862, allocations: 55.77 kB / 405.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.2863, allocations: 107.5 kB / 405.2 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.2866, allocations: 244.2 kB / 405.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2866, allocations: 0 / 405.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2866, allocations: 0 / 405.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.535e-06/0.2866, allocations: 0 / 405.5 MB, free: 4.77 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007807/0.2874, allocations: 0.5184 MB / 406 MB, free: 4.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.2875, allocations: 11.89 kB / 406 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/0.2875, allocations: 24.66 kB / 406 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003615/0.2879, allocations: 245.2 kB / 406.3 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.2879, allocations: 12.81 kB / 406.3 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.288, allocations: 20.38 kB / 406.3 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.2884, allocations: 218.1 kB / 406.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.069e-05/0.2884, allocations: 4 kB / 406.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.2884, allocations: 8 kB / 406.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.2885, allocations: 8 kB / 406.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002646/0.2887, allocations: 129.7 kB / 406.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.2898, allocations: 0.7054 MB / 407.4 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.29, allocations: 150.4 kB / 407.5 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.2902, allocations: 72.81 kB / 407.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.2902, allocations: 0 / 407.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.2903, allocations: 42.55 kB / 407.6 MB, free: 2.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.022e-06/0.2903, allocations: 4 kB / 407.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001626/0.2919, allocations: 0.8799 MB / 408.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.2919, allocations: 55.41 kB / 408.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.2921, allocations: 175.2 kB / 408.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.2921, allocations: 33.64 kB / 408.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.822e-05/0.2922, allocations: 144.2 kB / 408.9 MB, free: 1.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.982e-05/0.2923, allocations: 90.66 kB / 409 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.835e-05/0.2924, allocations: 45.7 kB / 409 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.2925, allocations: 330.8 kB / 409.4 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.2926, allocations: 55.97 kB / 409.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.2928, allocations: 104.2 kB / 409.5 MB, free: 400 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002539/0.293, allocations: 164.1 kB / 409.7 MB, free: 220 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.293, allocations: 4 kB / 409.7 MB, free: 216 kB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004241/0.2935, allocations: 250 kB / 409.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2935, allocations: 4 kB / 409.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2935, allocations: 0 / 409.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001707/0.2937, allocations: 36.84 kB / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.2939, allocations: 52.03 kB / 410 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.2951, allocations: 1.489 MB / 411.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.2952, allocations: 8.031 kB / 411.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.2952, allocations: 8 kB / 411.5 MB, free: 14.21 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001284/0.2954, allocations: 137.8 kB / 411.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.299e-05/0.2954, allocations: 23.72 kB / 411.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.973e-05/0.2955, allocations: 17.88 kB / 411.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2955, allocations: 7.938 kB / 411.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2955, allocations: 4.062 kB / 411.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2955, allocations: 7.922 kB / 411.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008391/0.2963, allocations: 0.6441 MB / 412.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2964, allocations: 4 kB / 412.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002218/0.2966, allocations: 43.92 kB / 412.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001113/0.2967, allocations: 36.89 kB / 412.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.2967, allocations: 8 kB / 412.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/0.2978, allocations: 1.485 MB / 413.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2978, allocations: 0 / 413.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005172/0.2983, allocations: 408.4 kB / 414.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.686e-05/0.2984, allocations: 96.95 kB / 414.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.2984, allocations: 4 kB / 414.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.2985, allocations: 4 kB / 414.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.526e-05/0.2986, allocations: 27.91 kB / 414.5 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.2986, allocations: 7.938 kB / 414.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001013/0.2987, allocations: 132.8 kB / 414.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.2987, allocations: 4 kB / 414.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003271/0.299, allocations: 59.94 kB / 414.7 MB, free: 10.8 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0001197/0.2992, allocations: 103.2 kB / 414.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005164/0.2997, allocations: 290.5 kB / 415 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2997, allocations: 4.25 kB / 415 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000283/0.3, allocations: 218.5 kB / 415.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.3004, allocations: 43.11 kB / 415.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.3016, allocations: 0.6942 MB / 416 MB, free: 9.387 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.3019, allocations: 0.7443 MB / 416.7 MB, free: 8.609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.402e-05/0.3019, allocations: 23.42 kB / 416.8 MB, free: 8.586 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3019, allocations: 0 / 416.8 MB, free: 8.586 MB / 334.1 MB Notification: Performance of Templates: time 0.005179/0.3071, allocations: 3.453 MB / 420.2 MB, free: 5.133 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches