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.001/0.001, allocations: 94.77 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 195 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.7 MB / 246.4 MB, free: 11.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002092/0.0002094, allocations: 4 kB / 307.1 MB, free: 1.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09101/0.09124, allocations: 51.52 MB / 358.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002337/0.09361, allocations: 1.975 MB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009288/0.09456, allocations: 0.6275 MB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.09468, allocations: 7.938 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.09479, allocations: 23.78 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.09492, allocations: 63.47 kB / 361.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.09511, allocations: 43.94 kB / 361.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002478/0.09537, allocations: 262.7 kB / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.09555, allocations: 89.16 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.09572, allocations: 91.64 kB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.09586, allocations: 99.55 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.751e-05/0.09589, allocations: 12 kB / 361.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.375e-05/0.09595, allocations: 12 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.637e-05/0.09599, allocations: 43.77 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.841e-05/0.09605, allocations: 69.58 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.09625, allocations: 195.7 kB / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.09626, allocations: 0 / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09626, allocations: 0 / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.09628, allocations: 0 / 362.2 MB, free: 10.01 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.0005695/0.09685, allocations: 487 kB / 362.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.09689, allocations: 12.03 kB / 362.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.09704, allocations: 35.7 kB / 362.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.09729, allocations: 243.2 kB / 363 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.09732, allocations: 16.38 kB / 363 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.09736, allocations: 24 kB / 363 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/0.0977, allocations: 199.2 kB / 363.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.09772, allocations: 0 / 363.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.09775, allocations: 12 kB / 363.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.09776, allocations: 8 kB / 363.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.09802, allocations: 137.7 kB / 363.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008828/0.09891, allocations: 0.6386 MB / 364 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.0992, allocations: 178.5 kB / 364.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.09938, allocations: 100.8 kB / 364.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.09941, allocations: 11.92 kB / 364.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.09943, allocations: 30.56 kB / 364.3 MB, free: 7.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.303e-06/0.09944, allocations: 4 kB / 364.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.00182/0.1013, allocations: 1.087 MB / 365.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.1013, allocations: 59.41 kB / 365.5 MB, free: 6.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.1015, allocations: 182.2 kB / 365.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.1015, allocations: 33.7 kB / 365.7 MB, free: 6.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.492e-05/0.1016, allocations: 136.7 kB / 365.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.367e-05/0.1017, allocations: 114.3 kB / 365.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.1017, allocations: 8 kB / 365.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1018, allocations: 330.8 kB / 366.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.1019, allocations: 75.95 kB / 366.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.1021, allocations: 111.1 kB / 366.4 MB, free: 5.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.1023, allocations: 90.19 kB / 366.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1023, allocations: 0 / 366.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004579/0.1027, allocations: 291.8 kB / 366.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1028, allocations: 4 kB / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.1028, allocations: 4 kB / 366.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001549/0.1029, allocations: 44.73 kB / 366.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002323/0.1032, allocations: 59.95 kB / 366.9 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.1045, allocations: 1.569 MB / 368.5 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.1046, allocations: 12.09 kB / 368.5 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.1047, allocations: 8 kB / 368.5 MB, free: 3.262 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.0001283/0.1048, allocations: 138.9 kB / 368.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.745e-05/0.1048, allocations: 27.61 kB / 368.7 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.271e-05/0.1049, allocations: 30.64 kB / 368.7 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1049, allocations: 4 kB / 368.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1049, allocations: 4.125 kB / 368.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.1049, allocations: 4 kB / 368.7 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.106, allocations: 0.7824 MB / 369.5 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.106, allocations: 3.984 kB / 369.5 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/0.1063, allocations: 63.91 kB / 369.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001146/0.1064, allocations: 36.78 kB / 369.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.1064, allocations: 8 kB / 369.6 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.1075, allocations: 1.378 MB / 371 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1075, allocations: 0 / 371 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000653/0.1081, allocations: 490.5 kB / 371.5 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1641/0.2723, allocations: 91.42 kB / 371.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.2723, allocations: 6.969 kB / 371.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.2725, allocations: 9.516 kB / 371.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.55e-05/0.2726, allocations: 23.28 kB / 371.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.2726, allocations: 9.344 kB / 371.6 MB, free: 18.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001124/0.2727, allocations: 135.8 kB / 371.7 MB, free: 18.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2727, allocations: 0.8438 kB / 371.7 MB, free: 18.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004685/0.2732, allocations: 70.19 kB / 371.8 MB, free: 18.89 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.0001175/0.2733, allocations: 113.8 kB / 371.9 MB, free: 18.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006422/0.274, allocations: 347.9 kB / 372.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.274, allocations: 0.9062 kB / 372.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003032/0.2743, allocations: 238.6 kB / 372.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004175/0.2747, allocations: 44.47 kB / 372.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.2759, allocations: 0.8819 MB / 373.4 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.2761, allocations: 0.7595 MB / 374.2 MB, free: 17.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.069e-05/0.2762, allocations: 26.8 kB / 374.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.42e-05/0.2763, allocations: 21.88 kB / 374.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2763, allocations: 0 / 374.2 MB, free: 17.39 MB / 302.1 MB Notification: Performance of Templates: time 0.00612/0.2824, allocations: 2.416 MB / 376.6 MB, free: 17.23 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.0.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