Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 110.9 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 188.5 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 43.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2763, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004198/0.2806, allocations: 2.353 MB / 403.7 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.2826, allocations: 0.9131 MB / 404.7 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.2828, allocations: 4 kB / 404.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002471/0.2831, allocations: 39.59 kB / 404.7 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006037/0.2837, allocations: 150.5 kB / 404.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004244/0.2842, allocations: 167.7 kB / 405 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005498/0.2847, allocations: 422.8 kB / 405.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.2849, allocations: 64.67 kB / 405.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003024/0.2852, allocations: 187.5 kB / 405.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003937/0.2856, allocations: 215.3 kB / 405.9 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.722e-05/0.2857, allocations: 32 kB / 405.9 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002708/0.286, allocations: 123.8 kB / 406 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.2862, allocations: 99.72 kB / 406.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.2864, allocations: 163.2 kB / 406.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005495/0.2869, allocations: 447.7 kB / 406.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2869, allocations: 0 / 406.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.287, allocations: 0 / 406.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.287, allocations: 0 / 406.7 MB, free: 3.512 MB / 318.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.001343/0.2883, allocations: 0.6355 MB / 407.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.2884, allocations: 12.03 kB / 407.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003375/0.2887, allocations: 48.53 kB / 407.4 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005295/0.2893, allocations: 308.5 kB / 407.7 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.2894, allocations: 88.52 kB / 407.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.578e-05/0.2895, allocations: 28.38 kB / 407.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007163/0.2902, allocations: 385.3 kB / 408.2 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.2903, allocations: 0 / 408.2 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.2903, allocations: 12 kB / 408.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.2903, allocations: 8 kB / 408.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009219/0.2912, allocations: 413.9 kB / 408.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.2934, allocations: 1.245 MB / 409.9 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007049/0.2941, allocations: 358.5 kB / 410.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.2946, allocations: 184.8 kB / 410.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.68e-05/0.2946, allocations: 4 kB / 410.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.2946, allocations: 42.55 kB / 410.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.134e-06/0.2947, allocations: 7.938 kB / 410.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004733/0.2994, allocations: 1.911 MB / 412.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.036e-05/0.2995, allocations: 88.86 kB / 412.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002985/0.2998, allocations: 242.1 kB / 412.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/0.2998, allocations: 33.7 kB / 412.7 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.281e-05/0.2999, allocations: 136.7 kB / 412.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.3001, allocations: 154 kB / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.3002, allocations: 78.12 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3004, allocations: 334.8 kB / 413.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003805/0.3008, allocations: 176.8 kB / 413.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004045/0.3012, allocations: 229.8 kB / 413.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006994/0.3019, allocations: 343.2 kB / 414.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3019, allocations: 0 / 414.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001121/0.303, allocations: 0.5551 MB / 414.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.3031, allocations: 8.125 kB / 414.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.3031, allocations: 7.984 kB / 414.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007511/0.3038, allocations: 244.6 kB / 415 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002349/0.3041, allocations: 51.91 kB / 415 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004189/0.3083, allocations: 2.883 MB / 417.9 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.3086, allocations: 23.97 kB / 417.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/0.3086, allocations: 20.06 kB / 417.9 MB, free: 7.73 MB / 334.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.0002131/0.3089, allocations: 165.6 kB / 418.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.02e-05/0.3089, allocations: 27.62 kB / 418.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.754e-05/0.3091, allocations: 42.98 kB / 418.2 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3091, allocations: 8 kB / 418.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3091, allocations: 4 kB / 418.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3091, allocations: 0 / 418.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.311, allocations: 1.086 MB / 419.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.311, allocations: 0 / 419.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.3112, allocations: 43.91 kB / 419.3 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000679/0.3119, allocations: 233.1 kB / 419.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.047e-05/0.312, allocations: 15.98 kB / 419.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003891/0.3159, allocations: 2.845 MB / 422.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3159, allocations: 4.062 kB / 422.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.3175, allocations: 0.8236 MB / 423.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.3177, allocations: 136.8 kB / 423.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.518e-05/0.3177, allocations: 15.94 kB / 423.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.318, allocations: 15.98 kB / 423.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.3182, allocations: 67.95 kB / 423.5 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.3182, allocations: 16 kB / 423.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002229/0.3184, allocations: 176.3 kB / 423.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3184, allocations: 3.938 kB / 423.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006484/0.3191, allocations: 151.9 kB / 423.8 MB, free: 1.629 MB / 334.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.0002708/0.3194, allocations: 143.1 kB / 423.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.3207, allocations: 0.6251 MB / 424.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3208, allocations: 0 / 424.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007564/0.3215, allocations: 437.7 kB / 425 MB, free: 404 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.322, allocations: 31.92 kB / 425 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.3235, allocations: 0.7156 MB / 425.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.3239, allocations: 0.7839 MB / 426.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.324, allocations: 27.42 kB / 426.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.324, allocations: 4 kB / 426.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of Templates: time 0.009021/0.333, allocations: 5.211 MB / 431.8 MB, free: 9.566 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches