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.001554/0.001554, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001612/0.001612, allocations: 198.8 kB / 18.01 MB, free: 4.918 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.431/1.431, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009921/0.0009921, allocations: 47.94 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2514, allocations: 49.44 MB / 400.7 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003554/0.255, allocations: 2.357 MB / 403.1 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2566, allocations: 0.9014 MB / 404 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.2568, allocations: 7.938 kB / 404 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.257, allocations: 55.5 kB / 404 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004836/0.2576, allocations: 131.3 kB / 404.2 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003715/0.2579, allocations: 175.6 kB / 404.3 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004459/0.2584, allocations: 422.8 kB / 404.7 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.2586, allocations: 64.67 kB / 404.8 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002575/0.2588, allocations: 179.5 kB / 405 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003323/0.2592, allocations: 219.2 kB / 405.2 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.211e-05/0.2592, allocations: 36 kB / 405.2 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.2595, allocations: 119.9 kB / 405.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.2596, allocations: 99.7 kB / 405.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.2598, allocations: 167.2 kB / 405.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005535/0.2604, allocations: 446.3 kB / 406 MB, free: 3.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2604, allocations: 3.938 kB / 406 MB, free: 3.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2604, allocations: 0 / 406 MB, free: 3.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.2604, allocations: 0 / 406 MB, free: 3.652 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.001266/0.2617, allocations: 0.6429 MB / 406.7 MB, free: 2.961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.2617, allocations: 8.031 kB / 406.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003412/0.2621, allocations: 52.72 kB / 406.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005201/0.2626, allocations: 300.6 kB / 407 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.2627, allocations: 88.52 kB / 407.1 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.465e-05/0.2628, allocations: 28.38 kB / 407.2 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000718/0.2635, allocations: 381.3 kB / 407.5 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/0.2636, allocations: 3.953 kB / 407.5 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.2636, allocations: 12 kB / 407.5 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2636, allocations: 8 kB / 407.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000885/0.2645, allocations: 421.9 kB / 408 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.2666, allocations: 1.242 MB / 409.2 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006764/0.2673, allocations: 362 kB / 409.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003837/0.2677, allocations: 184.8 kB / 409.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.257e-05/0.2678, allocations: 12.12 kB / 409.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.2678, allocations: 46.55 kB / 409.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.703e-06/0.2678, allocations: 0 / 409.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004833/0.2727, allocations: 1.919 MB / 411.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.2728, allocations: 84.86 kB / 411.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002989/0.2731, allocations: 238.2 kB / 412 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/0.2731, allocations: 33.7 kB / 412.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.118e-05/0.2732, allocations: 140.8 kB / 412.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.2733, allocations: 158.7 kB / 412.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.2735, allocations: 82.12 kB / 412.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2736, allocations: 338.8 kB / 412.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/0.274, allocations: 172.8 kB / 412.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.2744, allocations: 225.9 kB / 413.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006977/0.2751, allocations: 347.2 kB / 413.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2752, allocations: 0 / 413.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001126/0.2763, allocations: 0.5591 MB / 414.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.2763, allocations: 4 kB / 414.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.2763, allocations: 4 kB / 414.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007424/0.2771, allocations: 248.7 kB / 414.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002344/0.2773, allocations: 51.91 kB / 414.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003907/0.2812, allocations: 2.888 MB / 417.2 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002551/0.2815, allocations: 35.95 kB / 417.3 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.523e-05/0.2816, allocations: 16 kB / 417.3 MB, free: 7.844 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.0001823/0.2818, allocations: 161.7 kB / 417.5 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.377e-05/0.2819, allocations: 27.86 kB / 417.5 MB, free: 7.648 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.282, allocations: 46.92 kB / 417.5 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.282, allocations: 4 kB / 417.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.282, allocations: 0 / 417.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.282, allocations: 4 kB / 417.5 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/0.2838, allocations: 1.09 MB / 418.6 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.2838, allocations: 0 / 418.6 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002121/0.284, allocations: 43.91 kB / 418.7 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00065/0.2847, allocations: 237.1 kB / 418.9 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.2847, allocations: 15.98 kB / 418.9 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003618/0.2884, allocations: 2.845 MB / 421.8 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2884, allocations: 4.031 kB / 421.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.2898, allocations: 0.8198 MB / 422.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.29, allocations: 136.9 kB / 422.7 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.2901, allocations: 20.06 kB / 422.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.2903, allocations: 19.98 kB / 422.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.2905, allocations: 59.91 kB / 422.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.2905, allocations: 19.92 kB / 422.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001923/0.2907, allocations: 180.3 kB / 423 MB, free: 1.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2907, allocations: 0 / 423 MB, free: 1.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005728/0.2913, allocations: 143.9 kB / 423.2 MB, free: 1.742 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.2916, allocations: 143 kB / 423.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.2929, allocations: 0.6289 MB / 423.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.2929, allocations: 0 / 423.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007604/0.2937, allocations: 437.7 kB / 424.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004312/0.2941, allocations: 43.86 kB / 424.4 MB, free: 472 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.2955, allocations: 0.6937 MB / 425.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.2959, allocations: 0.7761 MB / 425.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001805/0.296, allocations: 54.95 kB / 425.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.268e-05/0.2961, allocations: 31.36 kB / 425.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2961, allocations: 0 / 425.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Templates: time 0.01271/0.3089, allocations: 7.199 MB / 433.1 MB, free: 7.672 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/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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches