Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 72.16 kB / 307 MB, free: 0.6055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.1007, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003885/0.1046, allocations: 2.365 MB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.1059, allocations: 0.6427 MB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.106, allocations: 8 kB / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.1062, allocations: 39.59 kB / 360.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.1064, allocations: 75.33 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.1066, allocations: 63.84 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003338/0.107, allocations: 274.7 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.1072, allocations: 106.7 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.1075, allocations: 115.6 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.1076, allocations: 111.5 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.845e-05/0.1077, allocations: 20 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.575e-05/0.1078, allocations: 24 kB / 361.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.275e-05/0.1079, allocations: 47.78 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.108, allocations: 123.4 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003223/0.1083, allocations: 271.3 kB / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1083, allocations: 0 / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1083, allocations: 4 kB / 361.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1084, allocations: 0 / 361.8 MB, free: 9.77 MB / 302.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.0008367/0.1092, allocations: 0.5262 MB / 362.3 MB, free: 9.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1092, allocations: 8.031 kB / 362.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002015/0.1094, allocations: 36.64 kB / 362.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/0.1098, allocations: 242.2 kB / 362.6 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.1098, allocations: 20.81 kB / 362.6 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.798e-05/0.1099, allocations: 32.3 kB / 362.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.1102, allocations: 187.6 kB / 362.8 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.1103, allocations: 7.984 kB / 362.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.1103, allocations: 8 kB / 362.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.1103, allocations: 8 kB / 362.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.1106, allocations: 141.5 kB / 363 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009856/0.1116, allocations: 0.6307 MB / 363.6 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.1119, allocations: 178.5 kB / 363.8 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001834/0.1121, allocations: 114.8 kB / 363.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.1121, allocations: 3.938 kB / 363.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.1122, allocations: 34.56 kB / 363.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.1122, allocations: 0 / 363.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.00199/0.1142, allocations: 1.069 MB / 365 MB, free: 6.289 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.1142, allocations: 63.33 kB / 365.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.1144, allocations: 190.2 kB / 365.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.1145, allocations: 29.7 kB / 365.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.83e-05/0.1146, allocations: 144.6 kB / 365.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.284e-05/0.1147, allocations: 110.4 kB / 365.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-05/0.1147, allocations: 53.7 kB / 365.6 MB, free: 5.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1149, allocations: 330.8 kB / 365.9 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.1151, allocations: 75.72 kB / 366 MB, free: 5.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.1152, allocations: 102.8 kB / 366.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.1156, allocations: 193 kB / 366.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1156, allocations: 0 / 366.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005009/0.1161, allocations: 291.1 kB / 366.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.1161, allocations: 15.02 kB / 366.6 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1161, allocations: 4 kB / 366.6 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.1163, allocations: 40.78 kB / 366.6 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.1166, allocations: 51.97 kB / 366.7 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.1182, allocations: 1.744 MB / 368.4 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.1183, allocations: 16 kB / 368.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.1184, allocations: 12 kB / 368.4 MB, free: 2.645 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.0001341/0.1185, allocations: 129.8 kB / 368.6 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.1186, allocations: 27.66 kB / 368.6 MB, free: 2.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.993e-05/0.1186, allocations: 34.64 kB / 368.6 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1186, allocations: 4 kB / 368.6 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.1187, allocations: 0 / 368.6 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1187, allocations: 3.938 kB / 368.6 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.1198, allocations: 0.7897 MB / 369.4 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.1198, allocations: 3.984 kB / 369.4 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.1201, allocations: 59.97 kB / 369.5 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001136/0.1202, allocations: 36.72 kB / 369.5 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1202, allocations: 8 kB / 369.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1522/0.2724, allocations: 1.482 MB / 371 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.2724, allocations: 2.109 kB / 371 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007201/0.2732, allocations: 479.7 kB / 371.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.2732, allocations: 94.53 kB / 371.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.2733, allocations: 9.219 kB / 371.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.2734, allocations: 13.64 kB / 371.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.717e-05/0.2735, allocations: 22.62 kB / 371.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.2735, allocations: 6.75 kB / 371.6 MB, free: 19.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001/0.2736, allocations: 138.1 kB / 371.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2736, allocations: 0.8438 kB / 371.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000421/0.2741, allocations: 63.94 kB / 371.8 MB, free: 19.04 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 9.261e-05/0.2742, allocations: 113.6 kB / 371.9 MB, free: 18.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006102/0.2748, allocations: 354.3 kB / 372.3 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2748, allocations: 1.312 kB / 372.3 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000299/0.2751, allocations: 244 kB / 372.5 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000456/0.2756, allocations: 40.59 kB / 372.6 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.2767, allocations: 0.7359 MB / 373.3 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.2769, allocations: 0.7595 MB / 374.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.482e-05/0.277, allocations: 24.84 kB / 374.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.815e-05/0.277, allocations: 22.92 kB / 374.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.277, allocations: 3.375 kB / 374.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of Templates: time 0.006514/0.2835, allocations: 2.662 MB / 376.8 MB, free: 17.51 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches