Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 114.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.001465/0.001465, 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.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001078, allocations: 43.92 kB / 352 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2727, allocations: 49.44 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00391/0.2766, allocations: 2.426 MB / 403.8 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.2785, allocations: 0.9598 MB / 404.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/0.2788, allocations: 7.938 kB / 404.8 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002351/0.279, allocations: 51.56 kB / 404.8 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005856/0.2796, allocations: 163.1 kB / 405 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.2801, allocations: 183.6 kB / 405.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005455/0.2806, allocations: 466.5 kB / 405.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.2808, allocations: 92.91 kB / 405.7 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003254/0.2812, allocations: 203.4 kB / 405.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000365/0.2815, allocations: 255 kB / 406.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.628e-05/0.2816, allocations: 36 kB / 406.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002714/0.2819, allocations: 127.9 kB / 406.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.2821, allocations: 111.6 kB / 406.4 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.2823, allocations: 187.1 kB / 406.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005562/0.2828, allocations: 495.6 kB / 407.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.2828, allocations: 0 / 407.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2828, allocations: 3.938 kB / 407.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.577e-05/0.2829, allocations: 0 / 407.1 MB, free: 3.176 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001286/0.2842, allocations: 0.6744 MB / 407.8 MB, free: 2.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.2842, allocations: 8.031 kB / 407.8 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003277/0.2845, allocations: 48.55 kB / 407.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004959/0.285, allocations: 323.5 kB / 408.2 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.2852, allocations: 88.61 kB / 408.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.422e-05/0.2853, allocations: 36.28 kB / 408.3 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000797/0.2861, allocations: 417 kB / 408.7 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.2861, allocations: 4 kB / 408.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.726e-05/0.2861, allocations: 12 kB / 408.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.2861, allocations: 8 kB / 408.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009585/0.2871, allocations: 478.2 kB / 409.2 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.2888, allocations: 0.958 MB / 410.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008293/0.2897, allocations: 411.8 kB / 410.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004691/0.2902, allocations: 234.1 kB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.3e-05/0.2902, allocations: 12.34 kB / 410.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.2902, allocations: 35 kB / 410.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.384e-06/0.2903, allocations: 4 kB / 410.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005291/0.2955, allocations: 2.171 MB / 413 MB, free: 13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/0.2956, allocations: 85.67 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003193/0.296, allocations: 267.1 kB / 413.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/0.296, allocations: 33.7 kB / 413.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.349e-05/0.2961, allocations: 137.1 kB / 413.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.2963, allocations: 177.4 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/0.2965, allocations: 94.14 kB / 413.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.2966, allocations: 338.8 kB / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004643/0.2971, allocations: 201 kB / 414.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000468/0.2975, allocations: 240.6 kB / 414.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000818/0.2984, allocations: 400.3 kB / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2984, allocations: 4.031 kB / 414.9 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001209/0.2996, allocations: 0.6018 MB / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.2996, allocations: 11.94 kB / 415.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2996, allocations: 0 / 415.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007664/0.3004, allocations: 266.4 kB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.3007, allocations: 59.95 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004007/0.3047, allocations: 2.94 MB / 418.8 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.3051, allocations: 28 kB / 418.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.149e-05/0.3051, allocations: 23.98 kB / 418.8 MB, free: 6.918 MB / 334.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.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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002115/0.3054, allocations: 153.8 kB / 419 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.333e-05/0.3054, allocations: 39.56 kB / 419 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.3056, allocations: 55.36 kB / 419.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3056, allocations: 4 kB / 419.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3056, allocations: 0 / 419.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3056, allocations: 3.984 kB / 419.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.3079, allocations: 1.262 MB / 420.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.3079, allocations: 0 / 420.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000323/0.3082, allocations: 71.83 kB / 420.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006627/0.3089, allocations: 240.7 kB / 420.7 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.222e-05/0.3089, allocations: 15.98 kB / 420.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003712/0.3127, allocations: 2.839 MB / 423.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3127, allocations: 8.016 kB / 423.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.3147, allocations: 0.9585 MB / 424.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002301/0.315, allocations: 152.7 kB / 424.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.695e-05/0.3151, allocations: 15.94 kB / 424.6 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.3154, allocations: 32.03 kB / 424.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/0.3156, allocations: 68.33 kB / 424.7 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.3156, allocations: 12 kB / 424.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002414/0.3159, allocations: 196.6 kB / 424.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3159, allocations: 0 / 424.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006962/0.3166, allocations: 160 kB / 425.1 MB, free: 424 kB / 334.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 (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.0002757/0.3168, allocations: 138 kB / 425.2 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.3184, allocations: 0.7034 MB / 425.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3184, allocations: 0 / 425.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008177/0.3192, allocations: 483.7 kB / 426.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.3197, allocations: 44.36 kB / 426.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.3214, allocations: 0.8295 MB / 427.3 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/0.3218, allocations: 0.8006 MB / 428.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.322, allocations: 35.42 kB / 428.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.322, allocations: 0 / 428.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of Templates: time 0.009311/0.3313, allocations: 5.98 MB / 434.1 MB, free: 7.316 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches