Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.First,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.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_4.0.0_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 108.4 kB / 17.16 MB, free: 6.082 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.00112/0.00112, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009824/0.0009825, allocations: 47.59 kB / 300.6 MB, free: 6.312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08931, allocations: 49.45 MB / 350.1 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003682/0.09304, allocations: 2.375 MB / 352.4 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.09415, allocations: 0.5805 MB / 353 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.09438, allocations: 4 kB / 353 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001741/0.09458, allocations: 27.77 kB / 353 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.09479, allocations: 67.47 kB / 353.1 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.09505, allocations: 47.95 kB / 353.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003247/0.09539, allocations: 266.7 kB / 353.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.0956, allocations: 83.31 kB / 353.5 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.09579, allocations: 99.58 kB / 353.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.09597, allocations: 107.5 kB / 353.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.652e-05/0.09601, allocations: 16 kB / 353.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.103e-05/0.09607, allocations: 16 kB / 353.7 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.63e-05/0.09612, allocations: 47.77 kB / 353.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.09624, allocations: 115.4 kB / 353.9 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.09645, allocations: 199.7 kB / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.09646, allocations: 0 / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.09647, allocations: 0 / 354.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.09649, allocations: 0 / 354.1 MB, free: 0.7812 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007567/0.09725, allocations: 0.5224 MB / 354.6 MB, free: 216 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.09729, allocations: 8.031 kB / 354.6 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.207e-05/0.09736, allocations: 28.59 kB / 354.6 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.09764, allocations: 240.6 kB / 354.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.09767, allocations: 20.8 kB / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.61e-05/0.09773, allocations: 28.28 kB / 354.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003597/0.09809, allocations: 191.5 kB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.09812, allocations: 16 kB / 355.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.09815, allocations: 4 kB / 355.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.09816, allocations: 8 kB / 355.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002736/0.09844, allocations: 133.7 kB / 355.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009788/0.09943, allocations: 0.6346 MB / 355.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.09975, allocations: 178.6 kB / 356.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/0.09993, allocations: 104.8 kB / 356.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.09997, allocations: 4 kB / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.1, allocations: 34.56 kB / 356.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.1, allocations: 0 / 356.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001908/0.1019, allocations: 1.08 MB / 357.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.102, allocations: 63.33 kB / 357.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.1021, allocations: 176 kB / 357.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.1022, allocations: 33.7 kB / 357.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.993e-05/0.1023, allocations: 136.7 kB / 357.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.542e-05/0.1023, allocations: 118.3 kB / 357.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.7e-05/0.1024, allocations: 49.7 kB / 357.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1026, allocations: 346.8 kB / 358.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.1027, allocations: 67.97 kB / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.1029, allocations: 107.2 kB / 358.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.1032, allocations: 193.3 kB / 358.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1032, allocations: 0 / 358.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005102/0.1037, allocations: 298.1 kB / 358.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1038, allocations: 4 kB / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1038, allocations: 0 / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001798/0.104, allocations: 44.83 kB / 358.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.1042, allocations: 59.91 kB / 359 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.1056, allocations: 1.569 MB / 360.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.1058, allocations: 12.06 kB / 360.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.1058, allocations: 7.984 kB / 360.5 MB, free: 9.855 MB / 302.1 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 (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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001339/0.106, allocations: 141.8 kB / 360.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.011e-05/0.106, allocations: 19.81 kB / 360.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/0.1061, allocations: 30.59 kB / 360.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1061, allocations: 4 kB / 360.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1061, allocations: 0 / 360.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1061, allocations: 7.984 kB / 360.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.1073, allocations: 0.778 MB / 361.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.1073, allocations: 0 / 361.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.1076, allocations: 59.84 kB / 361.6 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001375/0.1077, allocations: 40.83 kB / 361.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.1077, allocations: 4 kB / 361.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.1088, allocations: 1.378 MB / 363 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.1089, allocations: 4.031 kB / 363 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000697/0.1096, allocations: 486.3 kB / 363.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.461e-05/0.1096, allocations: 104.8 kB / 363.6 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.1097, allocations: 8 kB / 363.6 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.1098, allocations: 12.03 kB / 363.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.251e-05/0.1099, allocations: 27.91 kB / 363.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.1099, allocations: 8 kB / 363.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001011/0.11, allocations: 131.5 kB / 363.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.11, allocations: 0 / 363.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.1104, allocations: 68 kB / 363.8 MB, free: 6.293 MB / 302.1 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 (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.000118/0.1106, allocations: 119 kB / 364 MB, free: 6.168 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006433/0.1112, allocations: 338.4 kB / 364.3 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1112, allocations: 0 / 364.3 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003535/0.1116, allocations: 239.1 kB / 364.5 MB, free: 5.578 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005162/0.1121, allocations: 43.66 kB / 364.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.1135, allocations: 0.8464 MB / 365.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.1139, allocations: 0.7563 MB / 366.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.834e-05/0.1139, allocations: 27.44 kB / 366.2 MB, free: 3.844 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1139, allocations: 3.938 kB / 366.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of Templates: time 0.006154/0.1201, allocations: 3.828 MB / 370 MB, free: 16 kB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches