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.0009988/0.0009987, allocations: 90.67 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001141/0.001141, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.7 MB / 247.5 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002494/0.0002494, allocations: 4.281 kB / 308.4 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.101, allocations: 51.53 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002624/0.1037, allocations: 2.045 MB / 362 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.105, allocations: 0.6389 MB / 362.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001932/0.1053, allocations: 4 kB / 362.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.1054, allocations: 27.78 kB / 362.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002384/0.1057, allocations: 71.39 kB / 362.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.106, allocations: 59.94 kB / 362.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003428/0.1063, allocations: 262.7 kB / 363 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.1065, allocations: 91.28 kB / 363.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002422/0.1068, allocations: 95.53 kB / 363.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.107, allocations: 103.5 kB / 363.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.107, allocations: 8 kB / 363.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.781e-05/0.1071, allocations: 19.94 kB / 363.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.655e-05/0.1071, allocations: 35.84 kB / 363.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1073, allocations: 141 kB / 363.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.1075, allocations: 195.7 kB / 363.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1075, allocations: 0 / 363.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1075, allocations: 0 / 363.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1076, allocations: 0 / 363.7 MB, free: 9.512 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.0007101/0.1083, allocations: 0.4912 MB / 364.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1083, allocations: 8.031 kB / 364.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.1085, allocations: 40.64 kB / 364.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.1088, allocations: 240.5 kB / 364.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.1089, allocations: 16.81 kB / 364.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.1089, allocations: 20.38 kB / 364.5 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003672/0.1093, allocations: 203.6 kB / 364.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.1093, allocations: 4 kB / 364.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.1093, allocations: 12 kB / 364.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.1093, allocations: 4 kB / 364.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/0.1096, allocations: 145.7 kB / 364.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009707/0.1106, allocations: 0.6307 MB / 365.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.1109, allocations: 184.7 kB / 365.7 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.1111, allocations: 107.1 kB / 365.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.1112, allocations: 4 kB / 365.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.1112, allocations: 34.56 kB / 365.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.965e-06/0.1112, allocations: 3.984 kB / 365.8 MB, free: 7.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001962/0.1132, allocations: 1.086 MB / 366.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.1132, allocations: 55.34 kB / 366.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.1134, allocations: 186.2 kB / 367.1 MB, free: 5.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.1134, allocations: 33.7 kB / 367.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.637e-05/0.1135, allocations: 144.7 kB / 367.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.751e-05/0.1136, allocations: 106.3 kB / 367.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.647e-05/0.1137, allocations: 37.7 kB / 367.4 MB, free: 5.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.1138, allocations: 330.8 kB / 367.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.1139, allocations: 75.97 kB / 367.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.1141, allocations: 110.5 kB / 368 MB, free: 4.934 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.1144, allocations: 197 kB / 368.1 MB, free: 4.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1144, allocations: 4 kB / 368.1 MB, free: 4.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005061/0.1149, allocations: 303.1 kB / 368.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.115, allocations: 4 kB / 368.4 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.115, allocations: 3.984 kB / 368.5 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.1152, allocations: 40.84 kB / 368.5 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/0.1154, allocations: 59.97 kB / 368.5 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001356/0.1168, allocations: 1.561 MB / 370.1 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001519/0.117, allocations: 16.02 kB / 370.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.117, allocations: 8 kB / 370.1 MB, free: 2.594 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.0001378/0.1171, allocations: 143.1 kB / 370.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.927e-05/0.1172, allocations: 23.72 kB / 370.3 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.63e-05/0.1173, allocations: 38.58 kB / 370.3 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1173, allocations: 4.062 kB / 370.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1173, allocations: 4 kB / 370.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1173, allocations: 0 / 370.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.1184, allocations: 0.7822 MB / 371.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1184, allocations: 4 kB / 371.1 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.1187, allocations: 67.84 kB / 371.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/0.1188, allocations: 36.77 kB / 371.2 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1188, allocations: 12.09 kB / 371.2 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1888/0.3077, allocations: 1.371 MB / 372.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3077, allocations: 0.5 kB / 372.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3088, allocations: 487.1 kB / 373.1 MB, free: 18.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.347e-05/0.3089, allocations: 96.66 kB / 373.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.3089, allocations: 11.55 kB / 373.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.3091, allocations: 12.75 kB / 373.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.101e-05/0.3092, allocations: 22.95 kB / 373.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.3092, allocations: 9.484 kB / 373.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001502/0.3094, allocations: 132.7 kB / 373.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.3094, allocations: 4.5 kB / 373.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004475/0.3099, allocations: 70.62 kB / 373.4 MB, free: 18.53 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.0001255/0.31, allocations: 103.7 kB / 373.5 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007413/0.3107, allocations: 347.3 kB / 373.9 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3108, allocations: 1.188 kB / 373.9 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003932/0.3112, allocations: 241.7 kB / 374.1 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.3117, allocations: 44.92 kB / 374.2 MB, free: 18.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.3131, allocations: 0.9353 MB / 375.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.3134, allocations: 0.7625 MB / 375.9 MB, free: 16.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.775e-05/0.3135, allocations: 24.78 kB / 375.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3135, allocations: 0 / 375.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of Templates: time 0.008733/0.3222, allocations: 3.822 MB / 379.7 MB, free: 16.7 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/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_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches