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.001303/0.001303, allocations: 102 kB / 16.5 MB, free: 6.688 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.001299/0.001299, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.289/1.289, allocations: 222.9 MB / 241.1 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009683/0.0009684, allocations: 52.77 kB / 299.9 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08461, allocations: 49.45 MB / 349.4 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003323/0.08797, allocations: 2.386 MB / 351.8 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008182/0.08881, allocations: 0.5805 MB / 352.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.08893, allocations: 11.94 kB / 352.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.08907, allocations: 15.84 kB / 352.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.08921, allocations: 63.47 kB / 352.4 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.08939, allocations: 47.95 kB / 352.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.08963, allocations: 246.8 kB / 352.7 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.08979, allocations: 68.78 kB / 352.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.08993, allocations: 95.58 kB / 352.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.09006, allocations: 99.55 kB / 353 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.09009, allocations: 16 kB / 353 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.39e-05/0.09013, allocations: 16 kB / 353 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.941e-05/0.09018, allocations: 43.77 kB / 353.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.09029, allocations: 111.4 kB / 353.2 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.0905, allocations: 235.4 kB / 353.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.09051, allocations: 3.938 kB / 353.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.09052, allocations: 0 / 353.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.09053, allocations: 4 kB / 353.4 MB, free: 0.7109 MB / 286.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.0006126/0.09115, allocations: 0.5029 MB / 353.9 MB, free: 164 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.09119, allocations: 12.03 kB / 353.9 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.354e-05/0.09125, allocations: 24.66 kB / 354 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.09149, allocations: 240.5 kB / 354.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.09152, allocations: 20.81 kB / 354.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.09156, allocations: 20.38 kB / 354.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003458/0.09191, allocations: 206.2 kB / 354.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.09194, allocations: 11.91 kB / 354.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.09196, allocations: 4 kB / 354.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.09198, allocations: 11.94 kB / 354.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/0.09223, allocations: 129.6 kB / 354.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009255/0.09317, allocations: 0.6977 MB / 355.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.09342, allocations: 153.1 kB / 355.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.09356, allocations: 72.83 kB / 355.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.09359, allocations: 4 kB / 355.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.09361, allocations: 38.5 kB / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.09362, allocations: 0 / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.00143/0.09505, allocations: 0.8831 MB / 356.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.0951, allocations: 59.41 kB / 356.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.09525, allocations: 175.2 kB / 356.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.09528, allocations: 29.7 kB / 356.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.677e-05/0.09536, allocations: 144.2 kB / 356.8 MB, free: 13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.529e-05/0.09542, allocations: 82.75 kB / 356.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.14e-05/0.0955, allocations: 49.7 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.09562, allocations: 330.8 kB / 357.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.09575, allocations: 51.98 kB / 357.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.0959, allocations: 104.2 kB / 357.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.09616, allocations: 172.2 kB / 357.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.09617, allocations: 0 / 357.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004326/0.09661, allocations: 253.9 kB / 357.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.09664, allocations: 6.812 kB / 357.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.09665, allocations: 7.938 kB / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001544/0.09681, allocations: 28.84 kB / 357.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.09703, allocations: 60.03 kB / 357.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001057/0.09809, allocations: 1.374 MB / 359.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.09822, allocations: 12.09 kB / 359.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.09824, allocations: 11.94 kB / 359.3 MB, free: 10.29 MB / 302.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.0001131/0.09836, allocations: 136.7 kB / 359.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.938e-05/0.09841, allocations: 19.75 kB / 359.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.804e-05/0.09846, allocations: 25.86 kB / 359.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.09847, allocations: 0 / 359.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.09848, allocations: 4 kB / 359.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.09848, allocations: 0 / 359.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008243/0.09931, allocations: 0.6519 MB / 360.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.09933, allocations: 0 / 360.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.09956, allocations: 51.97 kB / 360.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000114/0.09968, allocations: 32.84 kB / 360.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.0997, allocations: 7.984 kB / 360.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00098/0.1007, allocations: 1.383 MB / 361.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1007, allocations: 3.938 kB / 361.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005365/0.1012, allocations: 405.5 kB / 362.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.808e-05/0.1013, allocations: 96.89 kB / 362.1 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.1013, allocations: 8 kB / 362.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.1015, allocations: 12 kB / 362.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.314e-05/0.1015, allocations: 15.97 kB / 362.2 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.1015, allocations: 8 kB / 362.2 MB, free: 7.191 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.533e-05/0.1016, allocations: 124.8 kB / 362.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1016, allocations: 0 / 362.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.102, allocations: 60 kB / 362.4 MB, free: 7.012 MB / 302.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.000106/0.1021, allocations: 115.1 kB / 362.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004902/0.1026, allocations: 286.4 kB / 362.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1026, allocations: 0 / 362.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.1029, allocations: 218.8 kB / 363 MB, free: 6.371 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004393/0.1033, allocations: 34.73 kB / 363 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.1045, allocations: 0.7695 MB / 363.8 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.1048, allocations: 0.7446 MB / 364.5 MB, free: 4.766 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.933e-05/0.1048, allocations: 21.94 kB / 364.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.467e-05/0.1049, allocations: 19.44 kB / 364.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1049, allocations: 0 / 364.6 MB, free: 4.727 MB / 302.1 MB Notification: Performance of Templates: time 0.004972/0.1099, allocations: 2.236 MB / 366.8 MB, free: 2.504 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins/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