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.001149/0.001149, allocations: 110.3 kB / 17.06 MB, free: 6.02 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.001137/0.001137, allocations: 191 kB / 18 MB, free: 5.105 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.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 51.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2805, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003795/0.2844, allocations: 2.43 MB / 403.1 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.2865, allocations: 0.9637 MB / 404.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/0.2867, allocations: 7.938 kB / 404.1 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.287, allocations: 51.56 kB / 404.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006334/0.2877, allocations: 163 kB / 404.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.2881, allocations: 190.9 kB / 404.5 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005295/0.2887, allocations: 466.5 kB / 405 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.2889, allocations: 80.94 kB / 405 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003695/0.2892, allocations: 211.3 kB / 405.2 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002832/0.2895, allocations: 247.2 kB / 405.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.834e-05/0.2896, allocations: 40 kB / 405.5 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.2898, allocations: 123.9 kB / 405.6 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001333/0.29, allocations: 115.6 kB / 405.8 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.2902, allocations: 183.2 kB / 405.9 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005269/0.2907, allocations: 0.4957 MB / 406.4 MB, free: 3.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2907, allocations: 0 / 406.4 MB, free: 3.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.2907, allocations: 0 / 406.4 MB, free: 3.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.2907, allocations: 3.938 kB / 406.4 MB, free: 3.121 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.001207/0.2919, allocations: 0.6666 MB / 407.1 MB, free: 2.406 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.292, allocations: 12.03 kB / 407.1 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.2923, allocations: 52.53 kB / 407.2 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004405/0.2928, allocations: 319.5 kB / 407.5 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.2929, allocations: 88.61 kB / 407.6 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.717e-05/0.293, allocations: 36.28 kB / 407.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007476/0.2937, allocations: 417 kB / 408 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.2937, allocations: 0 / 408 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.2938, allocations: 19.98 kB / 408 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.2938, allocations: 8 kB / 408 MB, free: 1.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009522/0.2948, allocations: 474.2 kB / 408.5 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/0.2964, allocations: 0.9696 MB / 409.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008013/0.2972, allocations: 408.8 kB / 409.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004455/0.2977, allocations: 234.1 kB / 410.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.2977, allocations: 8.438 kB / 410.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.2977, allocations: 35 kB / 410.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.734e-06/0.2977, allocations: 0 / 410.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.004954/0.3027, allocations: 2.171 MB / 412.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.237e-05/0.3028, allocations: 81.67 kB / 412.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.3031, allocations: 263.1 kB / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.3031, allocations: 41.64 kB / 412.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.373e-05/0.3032, allocations: 137.1 kB / 412.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.3034, allocations: 185.4 kB / 413 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.3035, allocations: 94.14 kB / 413.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3037, allocations: 338.8 kB / 413.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005165/0.3042, allocations: 197 kB / 413.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/0.3047, allocations: 240.6 kB / 413.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007742/0.3055, allocations: 396.3 kB / 414.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3055, allocations: 0 / 414.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001183/0.3067, allocations: 0.6057 MB / 414.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.3067, allocations: 7.938 kB / 414.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3067, allocations: 48 / 414.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007262/0.3075, allocations: 270.5 kB / 415.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.3078, allocations: 63.89 kB / 415.2 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003859/0.3117, allocations: 2.94 MB / 418.1 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.312, allocations: 27.97 kB / 418.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-05/0.312, allocations: 19.98 kB / 418.2 MB, free: 6.867 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.000173/0.3122, allocations: 157.8 kB / 418.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.44e-05/0.3123, allocations: 35.56 kB / 418.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.3124, allocations: 55.23 kB / 418.4 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3124, allocations: 7.984 kB / 418.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.3124, allocations: 4 kB / 418.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3124, allocations: 3.984 kB / 418.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/0.3145, allocations: 1.262 MB / 419.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3145, allocations: 0 / 419.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.3148, allocations: 59.95 kB / 419.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007001/0.3156, allocations: 240.6 kB / 420 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.694e-05/0.3156, allocations: 19.98 kB / 420 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003704/0.3193, allocations: 2.839 MB / 422.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3194, allocations: 3.984 kB / 422.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.321, allocations: 0.9624 MB / 423.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.3212, allocations: 148.7 kB / 424 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.199e-05/0.3213, allocations: 15.94 kB / 424 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002839/0.3216, allocations: 23.97 kB / 424 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.3217, allocations: 68.33 kB / 424.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.3218, allocations: 19.98 kB / 424.1 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002285/0.322, allocations: 196.6 kB / 424.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.974e-06/0.322, allocations: 0 / 424.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006103/0.3226, allocations: 164 kB / 424.4 MB, free: 372 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.0002564/0.3229, allocations: 154.3 kB / 424.6 MB, free: 208 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.3244, allocations: 0.6956 MB / 425.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3244, allocations: 0 / 425.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000811/0.3252, allocations: 483.6 kB / 425.7 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.3256, allocations: 43.8 kB / 425.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.3271, allocations: 0.8007 MB / 426.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004158/0.3276, allocations: 0.7968 MB / 427.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001795/0.3278, allocations: 58.95 kB / 427.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.634e-05/0.3279, allocations: 31.42 kB / 427.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3279, allocations: 0 / 427.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Templates: time 0.01379/0.3417, allocations: 7.863 MB / 435.3 MB, free: 5.375 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/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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches