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.001117/0.001117, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.001198/0.001198, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.339/1.339, allocations: 222.9 MB / 241.8 MB, free: 13.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 51.8 kB / 300.6 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1032, allocations: 49.45 MB / 350.1 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003855/0.1071, allocations: 2.398 MB / 352.5 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009155/0.1081, allocations: 0.5726 MB / 353 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.1083, allocations: 7.938 kB / 353 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.1084, allocations: 31.78 kB / 353.1 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.1086, allocations: 55.53 kB / 353.1 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.1088, allocations: 43.97 kB / 353.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002604/0.1091, allocations: 250.7 kB / 353.4 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.1092, allocations: 68.8 kB / 353.5 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.1094, allocations: 103.6 kB / 353.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/0.1095, allocations: 103.5 kB / 353.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.17e-05/0.1096, allocations: 12 kB / 353.7 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.714e-05/0.1096, allocations: 16 kB / 353.7 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.932e-05/0.1097, allocations: 39.83 kB / 353.7 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001113/0.1098, allocations: 111.4 kB / 353.9 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.1099, allocations: 179.8 kB / 354 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.11, allocations: 0 / 354 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.11, allocations: 0 / 354 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.11, allocations: 0 / 354 MB, free: 0.6211 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.000695/0.1107, allocations: 0.5146 MB / 354.5 MB, free: 60 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.1107, allocations: 12.03 kB / 354.6 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.1108, allocations: 24.66 kB / 354.6 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.111, allocations: 236.6 kB / 354.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.1111, allocations: 12.81 kB / 354.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.1111, allocations: 20.38 kB / 354.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.1115, allocations: 218.2 kB / 355.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.1115, allocations: 3.906 kB / 355.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.1115, allocations: 12 kB / 355.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.1116, allocations: 4 kB / 355.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002561/0.1118, allocations: 129.6 kB / 355.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001005/0.1128, allocations: 0.6977 MB / 355.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002615/0.1131, allocations: 152.4 kB / 356 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.1132, allocations: 72.83 kB / 356.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.1133, allocations: 0 / 356.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.1133, allocations: 34.56 kB / 356.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.232e-06/0.1133, allocations: 7.938 kB / 356.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001558/0.1149, allocations: 0.8826 MB / 357 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.1149, allocations: 55.41 kB / 357.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.1151, allocations: 183.2 kB / 357.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.1151, allocations: 25.7 kB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/0.1152, allocations: 144.2 kB / 357.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.99e-05/0.1153, allocations: 86.75 kB / 357.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.872e-05/0.1154, allocations: 49.7 kB / 357.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1155, allocations: 330.8 kB / 357.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.1156, allocations: 51.98 kB / 357.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.1158, allocations: 104.2 kB / 358 MB, free: 12.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.1161, allocations: 164.2 kB / 358.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.1161, allocations: 0 / 358.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004587/0.1165, allocations: 257.9 kB / 358.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.1166, allocations: 12.12 kB / 358.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.1166, allocations: 0 / 358.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001644/0.1167, allocations: 28.84 kB / 358.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.117, allocations: 51.91 kB / 358.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.1181, allocations: 1.374 MB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.1183, allocations: 12.02 kB / 359.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.1183, allocations: 19.94 kB / 360 MB, free: 10.2 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.0001287/0.1185, allocations: 129.8 kB / 360.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.644e-05/0.1185, allocations: 15.81 kB / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.098e-05/0.1186, allocations: 33.92 kB / 360.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1186, allocations: 4 kB / 360.1 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1186, allocations: 0 / 360.1 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1186, allocations: 0 / 360.1 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009086/0.1195, allocations: 0.6519 MB / 360.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1195, allocations: 0 / 360.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002186/0.1198, allocations: 55.84 kB / 360.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001209/0.1199, allocations: 28.84 kB / 360.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.1199, allocations: 11.98 kB / 360.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.121, allocations: 1.379 MB / 362.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1211, allocations: 3.938 kB / 362.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005699/0.1216, allocations: 409.4 kB / 362.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.719e-05/0.1217, allocations: 92.95 kB / 362.8 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.1218, allocations: 8 kB / 362.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.1219, allocations: 0 / 362.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.286e-05/0.1219, allocations: 19.97 kB / 362.8 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.122, allocations: 12 kB / 362.8 MB, free: 7.102 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001062/0.1221, allocations: 124.8 kB / 362.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1221, allocations: 0 / 362.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.1224, allocations: 63.94 kB / 363 MB, free: 6.918 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.0001248/0.1225, allocations: 108.4 kB / 363.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005635/0.1231, allocations: 294.6 kB / 363.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1231, allocations: 0 / 363.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003055/0.1234, allocations: 210.5 kB / 363.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004913/0.1239, allocations: 39.08 kB / 363.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.1253, allocations: 0.7908 MB / 364.4 MB, free: 5.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.1257, allocations: 0.7446 MB / 365.2 MB, free: 4.648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.766e-05/0.1257, allocations: 23.42 kB / 365.2 MB, free: 4.625 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1257, allocations: 0 / 365.2 MB, free: 4.625 MB / 302.1 MB Notification: Performance of Templates: time 0.005493/0.1312, allocations: 3.441 MB / 368.6 MB, free: 1.184 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/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