Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007581/0.0007617, allocations: 98.97 kB / 17 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008485/0.0008485, allocations: 194 kB / 17.91 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002056/0.0002056, allocations: 4 kB / 307.1 MB, free: 0.9883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08694/0.08716, allocations: 51.52 MB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003825/0.09103, allocations: 2.066 MB / 360.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.09346, allocations: 0.9799 MB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/0.09376, allocations: 4 kB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003663/0.09415, allocations: 67.61 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005927/0.09476, allocations: 131.4 kB / 361.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.09529, allocations: 123.8 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006473/0.09595, allocations: 414.6 kB / 362.4 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.09617, allocations: 48.7 kB / 362.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003585/0.09654, allocations: 179.4 kB / 362.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004696/0.09702, allocations: 219.3 kB / 362.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.709e-05/0.09714, allocations: 20 kB / 362.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003277/0.09747, allocations: 91.95 kB / 362.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/0.09765, allocations: 91.7 kB / 363 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.09778, allocations: 69.58 kB / 363.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005925/0.09838, allocations: 363.4 kB / 363.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.0984, allocations: 0 / 363.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.09842, allocations: 3.938 kB / 363.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.09844, allocations: 0 / 363.5 MB, free: 8.598 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001659/0.1001, allocations: 0.6081 MB / 364.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.1002, allocations: 8.031 kB / 364.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004792/0.1007, allocations: 55.58 kB / 364.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006237/0.1013, allocations: 296.2 kB / 364.4 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.1015, allocations: 83.95 kB / 364.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.32e-05/0.1016, allocations: 28 kB / 364.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.1026, allocations: 393.2 kB / 364.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.1027, allocations: 0 / 364.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.103e-05/0.1028, allocations: 12 kB / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.1028, allocations: 8 kB / 364.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.1041, allocations: 421.9 kB / 365.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.1072, allocations: 1.273 MB / 366.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.1083, allocations: 358 kB / 367 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.109, allocations: 184.8 kB / 367.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.109, allocations: 4 kB / 367.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.1091, allocations: 42.56 kB / 367.2 MB, free: 4.648 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 4.809e-06/0.1091, allocations: 0 / 367.2 MB, free: 4.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.007274/0.1164, allocations: 1.945 MB / 369.1 MB, free: 2.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.1164, allocations: 88.81 kB / 369.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004306/0.1169, allocations: 246.5 kB / 369.5 MB, free: 2.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.844e-05/0.117, allocations: 41.69 kB / 369.5 MB, free: 2.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.1171, allocations: 132.6 kB / 369.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.1173, allocations: 149.9 kB / 369.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/0.1173, allocations: 12 kB / 369.8 MB, free: 1.891 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.1175, allocations: 334.8 kB / 370.1 MB, free: 1.555 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006146/0.1181, allocations: 168.8 kB / 370.3 MB, free: 1.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006888/0.1188, allocations: 229.9 kB / 370.5 MB, free: 1.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005943/0.1195, allocations: 156.8 kB / 370.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1195, allocations: 0 / 370.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001818/0.1213, allocations: 0.5474 MB / 371.2 MB, free: 452 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.1213, allocations: 11.98 kB / 371.2 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1214, allocations: 3.984 kB / 371.2 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.1225, allocations: 301.7 kB / 371.5 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003858/0.1229, allocations: 55.95 kB / 371.6 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1662/0.2891, allocations: 2.65 MB / 374.2 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.2894, allocations: 31.58 kB / 374.3 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.097e-05/0.2895, allocations: 18.53 kB / 374.3 MB, free: 17.83 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001774/0.2896, allocations: 154.4 kB / 374.4 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.825e-05/0.2897, allocations: 28.91 kB / 374.5 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.2898, allocations: 43.34 kB / 374.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2898, allocations: 8.188 kB / 374.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2898, allocations: 1.031 kB / 374.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.2899, allocations: 5.969 kB / 374.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.2917, allocations: 1.12 MB / 375.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.2917, allocations: 1.984 kB / 375.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.2919, allocations: 52.45 kB / 375.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000698/0.2926, allocations: 278.6 kB / 376 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.563e-05/0.2927, allocations: 11.88 kB / 376 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002976/0.2957, allocations: 2.608 MB / 378.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2957, allocations: 1.375 kB / 378.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.297, allocations: 0.8161 MB / 379.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.2972, allocations: 153.9 kB / 379.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.2972, allocations: 9.172 kB / 379.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000244/0.2975, allocations: 32.39 kB / 379.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.2976, allocations: 71.27 kB / 379.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.2977, allocations: 16.12 kB / 379.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001899/0.2979, allocations: 183.3 kB / 379.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2979, allocations: 0 / 379.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006008/0.2985, allocations: 137 kB / 380 MB, free: 14.63 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008021/0.2993, allocations: 384.4 kB / 380.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.3005, allocations: 0.6268 MB / 381 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3005, allocations: 1.094 kB / 381 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006707/0.3012, allocations: 438.6 kB / 381.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.3016, allocations: 41.73 kB / 381.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.3031, allocations: 0.8362 MB / 382.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.3034, allocations: 0.7781 MB / 383.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002729/0.3037, allocations: 69.98 kB / 383.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.3038, allocations: 39.89 kB / 383.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3038, allocations: 0 / 383.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.01287/0.3167, allocations: 6.855 MB / 390 MB, free: 10.67 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches