Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009289/0.0009287, allocations: 103.1 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001204, allocations: 191.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002076/0.0002077, allocations: 8 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09261/0.09284, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002917/0.0958, allocations: 2.132 MB / 360.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.09765, allocations: 1.069 MB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.09792, allocations: 4 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003715/0.0983, allocations: 51.62 kB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006145/0.09894, allocations: 150.7 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.09946, allocations: 147.7 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006953/0.1002, allocations: 462.5 kB / 362.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.1004, allocations: 77.02 kB / 362.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005148/0.1009, allocations: 203.3 kB / 362.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004712/0.1014, allocations: 247.2 kB / 363.1 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1015, allocations: 24 kB / 363.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003096/0.1018, allocations: 99.95 kB / 363.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.102, allocations: 91.7 kB / 363.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.1021, allocations: 81.52 kB / 363.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004751/0.1026, allocations: 403.3 kB / 363.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1026, allocations: 0 / 363.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1026, allocations: 3.938 kB / 363.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.1026, allocations: 0 / 363.8 MB, free: 8.422 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001342/0.104, allocations: 0.6471 MB / 364.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.104, allocations: 8.031 kB / 364.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004606/0.1045, allocations: 63.5 kB / 364.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000568/0.1051, allocations: 314.2 kB / 364.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.1052, allocations: 92.05 kB / 364.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.912e-05/0.1053, allocations: 31.94 kB / 365 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008295/0.1062, allocations: 428.9 kB / 365.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.1062, allocations: 3.938 kB / 365.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.1062, allocations: 12 kB / 365.4 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.1062, allocations: 8 kB / 365.4 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009948/0.1072, allocations: 486.3 kB / 365.9 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.109, allocations: 1.005 MB / 366.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008251/0.1098, allocations: 400.5 kB / 367.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004818/0.1103, allocations: 238.1 kB / 367.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.794e-05/0.1104, allocations: 16.42 kB / 367.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.1104, allocations: 35 kB / 367.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.994e-06/0.1104, allocations: 0 / 367.6 MB, free: 4.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005178/0.1156, allocations: 2.191 MB / 369.8 MB, free: 2.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.1157, allocations: 89.62 kB / 369.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.116, allocations: 276.9 kB / 370.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.409e-05/0.1161, allocations: 37.69 kB / 370.1 MB, free: 1.766 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.451e-05/0.1162, allocations: 137.1 kB / 370.3 MB, free: 1.625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.1163, allocations: 189.3 kB / 370.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.1164, allocations: 12 kB / 370.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1165, allocations: 338.8 kB / 370.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004468/0.117, allocations: 205 kB / 371 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004735/0.1174, allocations: 244.6 kB / 371.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004288/0.1179, allocations: 186.2 kB / 371.4 MB, free: 468 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1179, allocations: 4 kB / 371.4 MB, free: 464 kB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.161/0.2789, allocations: 0.6125 MB / 372 MB, free: 19.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.279, allocations: 8.719 kB / 372.1 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.279, allocations: 2.188 kB / 372.1 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009507/0.28, allocations: 291.2 kB / 372.3 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.2804, allocations: 73.41 kB / 372.4 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003688/0.2841, allocations: 2.698 MB / 375.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.2844, allocations: 36.34 kB / 375.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.449e-05/0.2845, allocations: 19.81 kB / 375.2 MB, free: 17.89 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002197/0.2847, allocations: 167.3 kB / 375.3 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.9e-05/0.2848, allocations: 34.16 kB / 375.4 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.285, allocations: 53.81 kB / 375.4 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.285, allocations: 5.719 kB / 375.4 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.285, allocations: 0 / 375.4 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.285, allocations: 3.141 kB / 375.4 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.2873, allocations: 1.304 MB / 376.7 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2873, allocations: 2.172 kB / 376.7 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003311/0.2877, allocations: 73.31 kB / 376.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006621/0.2883, allocations: 289.5 kB / 377.1 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-05/0.2884, allocations: 17.2 kB / 377.1 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003032/0.2914, allocations: 2.613 MB / 379.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.2914, allocations: 0 / 379.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.2931, allocations: 0.9705 MB / 380.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.2933, allocations: 165.6 kB / 380.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.995e-05/0.2934, allocations: 13.03 kB / 380.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.2937, allocations: 43.84 kB / 380.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001832/0.2939, allocations: 79.27 kB / 381 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.193e-05/0.2939, allocations: 21.42 kB / 381 MB, free: 14.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.2941, allocations: 199 kB / 381.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2942, allocations: 0 / 381.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006293/0.2948, allocations: 150 kB / 381.3 MB, free: 14.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.0008544/0.2957, allocations: 393.6 kB / 381.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.297, allocations: 0.7036 MB / 382.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.297, allocations: 4 kB / 382.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007757/0.2978, allocations: 480.4 kB / 382.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004423/0.2983, allocations: 50.98 kB / 383 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.2998, allocations: 0.9519 MB / 383.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.3001, allocations: 0.7993 MB / 384.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002829/0.3004, allocations: 81.98 kB / 384.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.3006, allocations: 39.67 kB / 384.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3006, allocations: 1.188 kB / 384.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of Templates: time 0.01307/0.3136, allocations: 7.435 MB / 392.3 MB, free: 9.68 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches