Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001225/0.001225, allocations: 114.4 kB / 17.28 MB, free: 6.199 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.0012/0.0012, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 47.92 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09482, allocations: 46.63 MB / 326.8 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003805/0.09866, allocations: 2.387 MB / 329.2 MB, free: 2.379 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009441/0.09964, allocations: 0.6164 MB / 329.8 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.09976, allocations: 4 kB / 329.8 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.09993, allocations: 31.78 kB / 329.8 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.1001, allocations: 59.47 kB / 329.9 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.1003, allocations: 47.95 kB / 329.9 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002605/0.1005, allocations: 258.8 kB / 330.2 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.1007, allocations: 88.31 kB / 330.3 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.1009, allocations: 99.58 kB / 330.4 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.101, allocations: 99.55 kB / 330.5 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.304e-05/0.101, allocations: 20 kB / 330.5 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.344e-05/0.1011, allocations: 20 kB / 330.5 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.841e-05/0.1011, allocations: 51.78 kB / 330.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.664e-05/0.1012, allocations: 115.3 kB / 330.7 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.1015, allocations: 243.4 kB / 330.9 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1015, allocations: 4 kB / 330.9 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1015, allocations: 0 / 330.9 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1015, allocations: 0 / 330.9 MB, free: 0.6328 MB / 270.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.0006861/0.1022, allocations: 0.5068 MB / 331.4 MB, free: 80 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1023, allocations: 15.88 kB / 331.4 MB, free: 64 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.259e-05/0.1023, allocations: 28.56 kB / 331.5 MB, free: 36 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1026, allocations: 248.5 kB / 331.7 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.1027, allocations: 12.81 kB / 331.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.1027, allocations: 20.38 kB / 331.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.1031, allocations: 214.2 kB / 331.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.1031, allocations: 7.984 kB / 331.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.1031, allocations: 8 kB / 332 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1032, allocations: 8 kB / 332 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.1034, allocations: 125.6 kB / 332.1 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009518/0.1044, allocations: 0.7093 MB / 332.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.1046, allocations: 146.5 kB / 332.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1048, allocations: 72.83 kB / 333 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.1048, allocations: 4 kB / 333 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.1048, allocations: 34.56 kB / 333 MB, free: 14.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.422e-06/0.1048, allocations: 3.938 kB / 333 MB, free: 14.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001527/0.1064, allocations: 0.8853 MB / 333.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.1064, allocations: 55.41 kB / 334 MB, free: 13.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.1066, allocations: 170.7 kB / 334.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1066, allocations: 33.7 kB / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.42e-05/0.1067, allocations: 144.2 kB / 334.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.94e-05/0.1067, allocations: 94.66 kB / 334.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.488e-05/0.1068, allocations: 45.7 kB / 334.5 MB, free: 12.76 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1069, allocations: 330.8 kB / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.107, allocations: 55.97 kB / 334.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.1072, allocations: 92.27 kB / 334.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.1074, allocations: 176.1 kB / 335.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.1074, allocations: 0 / 335.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003978/0.1078, allocations: 250.1 kB / 335.3 MB, free: 11.83 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1079, allocations: 8 kB / 335.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.1079, allocations: 0 / 335.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001517/0.108, allocations: 36.83 kB / 335.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002047/0.1083, allocations: 47.92 kB / 335.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.1095, allocations: 1.485 MB / 336.9 MB, free: 10.11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.1096, allocations: 16.05 kB / 336.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.1096, allocations: 11.94 kB / 337 MB, free: 10.08 MB / 286.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.000125/0.1097, allocations: 133.8 kB / 337.1 MB, free: 9.938 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.965e-05/0.1098, allocations: 15.81 kB / 337.1 MB, free: 9.922 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.87e-05/0.1098, allocations: 25.86 kB / 337.1 MB, free: 9.898 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.1099, allocations: 11.88 kB / 337.1 MB, free: 9.887 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1099, allocations: 0 / 337.1 MB, free: 9.887 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1099, allocations: 0 / 337.1 MB, free: 9.887 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008605/0.1107, allocations: 0.6481 MB / 337.8 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1108, allocations: 0 / 337.8 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002058/0.111, allocations: 52.03 kB / 337.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001186/0.1111, allocations: 40.77 kB / 337.9 MB, free: 9.07 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.1111, allocations: 4 kB / 337.9 MB, free: 9.066 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.1122, allocations: 1.481 MB / 339.4 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/0.1122, allocations: 4.031 kB / 339.4 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000535/0.1128, allocations: 402.2 kB / 339.8 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.913e-05/0.1129, allocations: 92.92 kB / 339.8 MB, free: 6.914 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.1129, allocations: 4 kB / 339.8 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.113, allocations: 8 kB / 339.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.1131, allocations: 27.95 kB / 339.9 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.1131, allocations: 8 kB / 339.9 MB, free: 6.867 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.794e-05/0.1132, allocations: 120.8 kB / 340 MB, free: 6.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1132, allocations: 0 / 340 MB, free: 6.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003363/0.1135, allocations: 60 kB / 340.1 MB, free: 6.691 MB / 286.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.1136, allocations: 107.2 kB / 340.2 MB, free: 6.574 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005454/0.1142, allocations: 314.3 kB / 340.5 MB, free: 6.254 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1142, allocations: 0 / 340.5 MB, free: 6.254 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002823/0.1145, allocations: 210.9 kB / 340.7 MB, free: 6.035 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.115, allocations: 40.52 kB / 340.7 MB, free: 5.996 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.1162, allocations: 0.7704 MB / 341.5 MB, free: 5.195 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.1165, allocations: 0.7443 MB / 342.2 MB, free: 4.426 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.972e-05/0.1166, allocations: 21.89 kB / 342.3 MB, free: 4.406 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.328e-05/0.1166, allocations: 19.44 kB / 342.3 MB, free: 4.387 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1166, allocations: 0 / 342.3 MB, free: 4.387 MB / 286.1 MB Notification: Performance of Templates: time 0.005316/0.1219, allocations: 2.357 MB / 344.6 MB, free: 2.035 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches