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.001118/0.001118, allocations: 116.5 kB / 17.7 MB, free: 5.438 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.001049/0.001049, allocations: 187 kB / 18.63 MB, free: 4.512 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.328/1.328, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009901/0.0009902, allocations: 48.27 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09081/0.09182, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003672/0.09553, allocations: 2.416 MB / 353.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.09724, allocations: 0.9676 MB / 354.9 MB, free: 296 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.09742, allocations: 7.938 kB / 354.9 MB, free: 288 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.09766, allocations: 47.56 kB / 354.9 MB, free: 240 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000477/0.09816, allocations: 159.1 kB / 355.1 MB, free: 80 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.09849, allocations: 184.5 kB / 355.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.09893, allocations: 462.5 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.09914, allocations: 88.92 kB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.09941, allocations: 215.3 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.09972, allocations: 243.2 kB / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.818e-05/0.09979, allocations: 44 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002025/0.1, allocations: 119.9 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.1001, allocations: 111.6 kB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1003, allocations: 183.2 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004792/0.1008, allocations: 0.4906 MB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1008, allocations: 0 / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1008, allocations: 0 / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1009, allocations: 3.938 kB / 357.2 MB, free: 13.96 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001298/0.1022, allocations: 0.6744 MB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.1022, allocations: 8.031 kB / 357.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003107/0.1025, allocations: 52.45 kB / 357.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.1031, allocations: 327.4 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.1032, allocations: 92.61 kB / 358.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-05/0.1033, allocations: 32.36 kB / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007598/0.1041, allocations: 413.1 kB / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1041, allocations: 3.984 kB / 358.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.1041, allocations: 16 kB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.1042, allocations: 4 kB / 358.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009492/0.1051, allocations: 478.2 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.1068, allocations: 0.9657 MB / 360.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008091/0.1076, allocations: 413.6 kB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004491/0.1081, allocations: 234.1 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.357e-05/0.1081, allocations: 8.422 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.1082, allocations: 39 kB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.974e-06/0.1082, allocations: 0 / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005091/0.1133, allocations: 2.168 MB / 363.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.1133, allocations: 85.66 kB / 363.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.1137, allocations: 263 kB / 363.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.1137, allocations: 37.7 kB / 363.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.979e-05/0.1138, allocations: 129.2 kB / 363.6 MB, free: 7.242 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.1139, allocations: 185.3 kB / 363.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.1141, allocations: 86.25 kB / 363.9 MB, free: 6.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1143, allocations: 346.8 kB / 364.2 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004199/0.1147, allocations: 197 kB / 364.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004502/0.1151, allocations: 240.6 kB / 364.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007862/0.1159, allocations: 400.3 kB / 365 MB, free: 5.785 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1159, allocations: 0 / 365 MB, free: 5.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001298/0.1173, allocations: 0.6134 MB / 365.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.1173, allocations: 11.94 kB / 365.6 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.1173, allocations: 0 / 365.6 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000723/0.118, allocations: 263.2 kB / 365.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/0.1183, allocations: 63.89 kB / 366 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003881/0.1222, allocations: 2.932 MB / 368.9 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/0.1225, allocations: 28 kB / 368.9 MB, free: 1.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.1226, allocations: 20 kB / 368.9 MB, free: 1.719 MB / 302.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.0001928/0.1228, allocations: 173.7 kB / 369.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.474e-05/0.1229, allocations: 35.56 kB / 369.1 MB, free: 1.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.123, allocations: 51.3 kB / 369.2 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.123, allocations: 4 kB / 369.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.123, allocations: 0 / 369.2 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.123, allocations: 3.984 kB / 369.2 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.1252, allocations: 1.266 MB / 370.5 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1252, allocations: 0 / 370.5 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003117/0.1255, allocations: 63.95 kB / 370.5 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1723/0.2978, allocations: 234 kB / 370.8 MB, free: 25.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.543e-05/0.2979, allocations: 17.55 kB / 370.8 MB, free: 25.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003503/0.3014, allocations: 2.836 MB / 373.6 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3014, allocations: 1.219 kB / 373.6 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.3037, allocations: 0.9633 MB / 374.6 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/0.304, allocations: 151.3 kB / 374.7 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.552e-05/0.3041, allocations: 12.72 kB / 374.7 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004764/0.3046, allocations: 28.61 kB / 374.8 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.3048, allocations: 66.55 kB / 374.8 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.05e-05/0.3049, allocations: 20.66 kB / 374.8 MB, free: 23.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003382/0.3053, allocations: 203 kB / 375 MB, free: 23.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3053, allocations: 0.8438 kB / 375 MB, free: 23.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008714/0.3062, allocations: 151.3 kB / 375.2 MB, free: 23.56 MB / 302.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.0002484/0.3064, allocations: 145.5 kB / 375.3 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.3078, allocations: 0.6962 MB / 376 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3078, allocations: 0.6562 kB / 376 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007495/0.3086, allocations: 487.8 kB / 376.5 MB, free: 22.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004263/0.309, allocations: 41.55 kB / 376.5 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.3104, allocations: 0.7957 MB / 377.3 MB, free: 22.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.3107, allocations: 0.7951 MB / 378.1 MB, free: 21.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001953/0.3109, allocations: 62.59 kB / 378.2 MB, free: 21.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.311, allocations: 37.3 kB / 378.2 MB, free: 21.79 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.311, allocations: 0 / 378.2 MB, free: 21.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01342/0.3245, allocations: 7.762 MB / 386 MB, free: 19.77 MB / 302.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 -s gbode -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) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi