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.001187/0.001187, allocations: 106.7 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.3 MB, free: 9.141 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 62.61 kB / 306.3 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0915/0.09287, allocations: 50.54 MB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004354/0.09726, allocations: 2.493 MB / 359.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.09923, allocations: 1.057 MB / 360.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002153/0.09948, allocations: 4 kB / 360.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003384/0.09986, allocations: 55.69 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00052/0.1004, allocations: 126.6 kB / 360.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004872/0.1009, allocations: 143.8 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006725/0.1016, allocations: 454.6 kB / 361.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.1018, allocations: 56.7 kB / 361.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003531/0.1021, allocations: 187.3 kB / 361.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004348/0.1026, allocations: 231.3 kB / 361.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.1027, allocations: 24 kB / 361.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003149/0.103, allocations: 104 kB / 361.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.1032, allocations: 91.64 kB / 361.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002207/0.1034, allocations: 163.2 kB / 361.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006369/0.1041, allocations: 482.8 kB / 362.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1041, allocations: 0 / 362.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1041, allocations: 0 / 362.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.1041, allocations: 0 / 362.4 MB, free: 8.641 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.001386/0.1055, allocations: 0.655 MB / 363.1 MB, free: 7.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.1056, allocations: 12.03 kB / 363.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003706/0.1059, allocations: 52.53 kB / 363.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/0.1064, allocations: 297.4 kB / 363.4 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.1065, allocations: 92.52 kB / 363.5 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.127e-05/0.1066, allocations: 32.28 kB / 363.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007847/0.1074, allocations: 385.3 kB / 363.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.1074, allocations: 4 kB / 363.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.871e-05/0.1075, allocations: 8 kB / 363.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.1075, allocations: 8 kB / 363.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009118/0.1084, allocations: 421.9 kB / 364.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.1106, allocations: 1.257 MB / 365.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007518/0.1113, allocations: 357.8 kB / 366 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004004/0.1118, allocations: 180.8 kB / 366.1 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.1118, allocations: 4.156 kB / 366.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.1118, allocations: 34.56 kB / 366.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.013e-06/0.1118, allocations: 4 kB / 366.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.005075/0.1169, allocations: 1.906 MB / 368.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.117, allocations: 92.84 kB / 368.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.1173, allocations: 246.1 kB / 368.4 MB, free: 2.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.1174, allocations: 37.7 kB / 368.5 MB, free: 2.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.969e-05/0.1175, allocations: 140.6 kB / 368.6 MB, free: 2.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.1176, allocations: 145.9 kB / 368.7 MB, free: 1.953 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.1177, allocations: 90.05 kB / 368.8 MB, free: 1.859 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.1179, allocations: 330.8 kB / 369.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000401/0.1183, allocations: 168.7 kB / 369.3 MB, free: 1.363 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004385/0.1187, allocations: 233.9 kB / 369.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007522/0.1195, allocations: 335.2 kB / 369.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1195, allocations: 4.031 kB / 369.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00121/0.1207, allocations: 0.5512 MB / 370.4 MB, free: 216 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.1207, allocations: 4 kB / 370.4 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.1207, allocations: 4 kB / 370.4 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1447/0.2655, allocations: 286.5 kB / 370.7 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003384/0.2658, allocations: 56 kB / 370.8 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003865/0.2697, allocations: 2.653 MB / 373.4 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.2701, allocations: 25.09 kB / 373.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.645e-05/0.2701, allocations: 20.05 kB / 373.5 MB, free: 18.77 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.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001699/0.2703, allocations: 154.4 kB / 373.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.574e-05/0.2704, allocations: 30.19 kB / 373.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.162e-05/0.2705, allocations: 45.27 kB / 373.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2705, allocations: 8.906 kB / 373.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.2705, allocations: 1.062 kB / 373.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2705, allocations: 2.203 kB / 373.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.2725, allocations: 1.114 MB / 374.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.2725, allocations: 1.438 kB / 374.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.2728, allocations: 48.39 kB / 374.9 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007973/0.2736, allocations: 278.7 kB / 375.1 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/0.2736, allocations: 12.03 kB / 375.1 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003276/0.2769, allocations: 2.602 MB / 377.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2769, allocations: 1.172 kB / 377.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001544/0.2785, allocations: 0.8072 MB / 378.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.2786, allocations: 150.1 kB / 378.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.883e-05/0.2787, allocations: 14.03 kB / 378.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002852/0.279, allocations: 24.27 kB / 378.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.2792, allocations: 63.25 kB / 378.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-05/0.2792, allocations: 17.83 kB / 378.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002142/0.2795, allocations: 183.2 kB / 379 MB, free: 15.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2795, allocations: 0 / 379 MB, free: 15.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006387/0.2801, allocations: 137.6 kB / 379.1 MB, free: 15.3 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008593/0.281, allocations: 387.6 kB / 379.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.2822, allocations: 0.6118 MB / 380.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2823, allocations: 0 / 380.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007298/0.283, allocations: 439.6 kB / 380.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005295/0.2835, allocations: 40.62 kB / 380.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.2849, allocations: 0.8167 MB / 381.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.2851, allocations: 0.7833 MB / 382.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002456/0.2854, allocations: 78.56 kB / 382.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.2855, allocations: 29.12 kB / 382.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2855, allocations: 7.875 kB / 382.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of Templates: time 0.01282/0.2983, allocations: 7.15 MB / 389.4 MB, free: 11.32 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