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.001063/0.001063, allocations: 90.89 kB / 16.31 MB, free: 5.543 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.00104/0.00104, allocations: 181.7 kB / 17.21 MB, free: 5.461 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.371/1.371, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002377/0.0002378, allocations: 9.75 kB / 300.8 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.0905, allocations: 50.41 MB / 351.2 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002692/0.09323, allocations: 1.962 MB / 353.2 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.09435, allocations: 0.5613 MB / 353.8 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.09455, allocations: 7.938 kB / 353.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.09469, allocations: 23.78 kB / 353.8 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.09489, allocations: 67.45 kB / 353.9 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002108/0.09511, allocations: 35.97 kB / 353.9 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003052/0.09542, allocations: 254.7 kB / 354.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000179/0.09561, allocations: 81.34 kB / 354.2 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.09579, allocations: 95.58 kB / 354.3 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.09595, allocations: 95.55 kB / 354.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.09598, allocations: 12 kB / 354.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.306e-05/0.09602, allocations: 12 kB / 354.4 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.178e-05/0.09606, allocations: 31.84 kB / 354.5 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.962e-05/0.09613, allocations: 69.58 kB / 354.5 MB, free: 480 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.09631, allocations: 191.7 kB / 354.7 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.09632, allocations: 4 kB / 354.7 MB, free: 284 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09633, allocations: 0 / 354.7 MB, free: 284 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.09635, allocations: 4 kB / 354.7 MB, free: 280 kB / 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.0006108/0.09696, allocations: 490.8 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.09701, allocations: 8.031 kB / 355.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.091e-05/0.09706, allocations: 23.72 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.09732, allocations: 240.3 kB / 355.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.09735, allocations: 16.44 kB / 355.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.09739, allocations: 23.91 kB / 355.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.09774, allocations: 191.3 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.09776, allocations: 7.938 kB / 355.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.09779, allocations: 15.89 kB / 355.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.0978, allocations: 8 kB / 355.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002691/0.09808, allocations: 145.7 kB / 355.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008713/0.09896, allocations: 0.6347 MB / 356.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002813/0.09925, allocations: 178.6 kB / 356.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.09943, allocations: 96.83 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.09946, allocations: 4 kB / 356.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.09949, allocations: 38.97 kB / 356.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.342e-06/0.09949, allocations: 0 / 356.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001853/0.1013, allocations: 1.08 MB / 357.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.1014, allocations: 55.41 kB / 358 MB, free: 12.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.1016, allocations: 180 kB / 358.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.1016, allocations: 33.7 kB / 358.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.1017, allocations: 144.6 kB / 358.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.363e-05/0.1017, allocations: 114.3 kB / 358.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.276e-05/0.1018, allocations: 8 kB / 358.4 MB, free: 12.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.1019, allocations: 330.8 kB / 358.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.102, allocations: 71.97 kB / 358.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.1022, allocations: 102.8 kB / 358.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.1023, allocations: 89.39 kB / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1024, allocations: 0 / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004665/0.1028, allocations: 295.9 kB / 359.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1029, allocations: 6.406 kB / 359.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1029, allocations: 8 kB / 359.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001753/0.1031, allocations: 44.83 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002508/0.1033, allocations: 59.91 kB / 359.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.1046, allocations: 1.565 MB / 361 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.1048, allocations: 12.02 kB / 361 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.1048, allocations: 8 kB / 361 MB, free: 9.559 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.1049, allocations: 145.8 kB / 361.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.165e-05/0.105, allocations: 19.72 kB / 361.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.045e-05/0.105, allocations: 30.61 kB / 361.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.1051, allocations: 4 kB / 361.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1051, allocations: 0 / 361.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1051, allocations: 3.984 kB / 361.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.1061, allocations: 0.7823 MB / 362 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1062, allocations: 0 / 362 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002538/0.1064, allocations: 64 kB / 362 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001064/0.1065, allocations: 37.02 kB / 362.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.1066, allocations: 12 kB / 362.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.1077, allocations: 1.382 MB / 363.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1077, allocations: 3.938 kB / 363.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006634/0.1084, allocations: 486.4 kB / 363.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.1084, allocations: 96.83 kB / 364 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.1085, allocations: 8 kB / 364 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.1086, allocations: 12.03 kB / 364.1 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.749e-05/0.1087, allocations: 31.91 kB / 364.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.1087, allocations: 4 kB / 364.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.787e-05/0.1088, allocations: 135.4 kB / 364.2 MB, free: 6.055 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1088, allocations: 0 / 364.2 MB, free: 6.055 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000391/0.1092, allocations: 68 kB / 364.3 MB, free: 5.988 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001271/0.1093, allocations: 111.2 kB / 364.4 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006062/0.1099, allocations: 342.5 kB / 364.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.11, allocations: 0 / 364.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003325/0.1103, allocations: 246.4 kB / 365 MB, free: 5.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004564/0.1108, allocations: 44.44 kB / 365 MB, free: 5.227 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.112, allocations: 0.8707 MB / 365.9 MB, free: 4.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.1124, allocations: 0.7602 MB / 366.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.81e-05/0.1125, allocations: 26.27 kB / 366.7 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.313e-05/0.1125, allocations: 19.44 kB / 366.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1125, allocations: 0 / 366.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of Templates: time 0.005512/0.118, allocations: 2.41 MB / 369.1 MB, free: 1.09 MB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins/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