Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001059/0.001059, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001004/0.001004, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.1 MB / 225.1 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 51.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.09149, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003788/0.09533, allocations: 2.42 MB / 331.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.09709, allocations: 1.011 MB / 332.1 MB, free: 304 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.09722, allocations: 7.938 kB / 332.2 MB, free: 296 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.09746, allocations: 43.58 kB / 332.2 MB, free: 252 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000484/0.09795, allocations: 159.1 kB / 332.4 MB, free: 92 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003705/0.09833, allocations: 187.6 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004636/0.09881, allocations: 474.5 kB / 333 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.09901, allocations: 84.92 kB / 333.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003152/0.09933, allocations: 203.4 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.09963, allocations: 251.1 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.944e-05/0.09969, allocations: 40 kB / 333.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.09991, allocations: 131.8 kB / 333.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001303/0.1, allocations: 103.7 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.1002, allocations: 183.2 kB / 334 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005162/0.1007, allocations: 498.4 kB / 334.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1008, allocations: 0 / 334.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1008, allocations: 0 / 334.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1008, allocations: 0 / 334.5 MB, free: 13.98 MB / 286.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.001202/0.102, allocations: 0.6744 MB / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.102, allocations: 12.02 kB / 335.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.1023, allocations: 48.55 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/0.1028, allocations: 327.5 kB / 335.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.103, allocations: 92.61 kB / 335.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.103, allocations: 32.28 kB / 335.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007186/0.1037, allocations: 417.1 kB / 336 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.1038, allocations: 0 / 336 MB, free: 12.28 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.1038, allocations: 16 kB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1038, allocations: 4 kB / 336.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009712/0.1048, allocations: 478.2 kB / 336.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.1066, allocations: 0.9696 MB / 337.5 MB, free: 10.76 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008029/0.1075, allocations: 408.5 kB / 337.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004455/0.1079, allocations: 234 kB / 338.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.362e-05/0.108, allocations: 12.42 kB / 338.1 MB, free: 10.11 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.108, allocations: 35 kB / 338.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 1.744e-06/0.108, allocations: 192 / 338.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.005113/0.1131, allocations: 2.167 MB / 340.3 MB, free: 7.793 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.1133, allocations: 81.67 kB / 340.4 MB, free: 7.695 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000393/0.1137, allocations: 259.1 kB / 340.7 MB, free: 7.434 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.023e-05/0.1137, allocations: 37.7 kB / 340.7 MB, free: 7.391 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.609e-05/0.1138, allocations: 141 kB / 340.8 MB, free: 7.246 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.114, allocations: 173.5 kB / 341 MB, free: 7.074 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000224/0.1142, allocations: 98.14 kB / 341.1 MB, free: 6.973 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1143, allocations: 342.8 kB / 341.4 MB, free: 6.629 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000517/0.1149, allocations: 197 kB / 341.6 MB, free: 6.434 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004695/0.1153, allocations: 240.6 kB / 341.9 MB, free: 6.191 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008329/0.1162, allocations: 404.3 kB / 342.3 MB, free: 5.793 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1162, allocations: 0 / 342.3 MB, free: 5.793 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001388/0.1176, allocations: 0.6057 MB / 342.9 MB, free: 5.176 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1176, allocations: 11.94 kB / 342.9 MB, free: 5.164 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.1176, allocations: 0 / 342.9 MB, free: 5.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007419/0.1184, allocations: 265.8 kB / 343.1 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003179/0.1187, allocations: 59.95 kB / 343.2 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004146/0.1229, allocations: 2.932 MB / 346.1 MB, free: 1.777 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.1232, allocations: 28 kB / 346.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.1233, allocations: 20 kB / 346.2 MB, free: 1.73 MB / 286.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.0002063/0.1235, allocations: 161.8 kB / 346.3 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.097e-05/0.1236, allocations: 35.56 kB / 346.4 MB, free: 1.527 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.1237, allocations: 47.31 kB / 346.4 MB, free: 1.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1237, allocations: 4 kB / 346.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1237, allocations: 0 / 346.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.1237, allocations: 3.984 kB / 346.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.126, allocations: 1.262 MB / 347.7 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.126, allocations: 4 kB / 347.7 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004025/0.1264, allocations: 67.89 kB / 347.8 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006747/0.1271, allocations: 244.7 kB / 348 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-05/0.1271, allocations: 15.98 kB / 348 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003959/0.1311, allocations: 2.838 MB / 350.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1311, allocations: 4.062 kB / 350.9 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001818/0.1329, allocations: 0.9582 MB / 351.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.1332, allocations: 148.7 kB / 352 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.77e-05/0.1332, allocations: 20 kB / 352 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/0.1336, allocations: 27.97 kB / 352 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.1337, allocations: 68.33 kB / 352.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.06e-05/0.1338, allocations: 23.91 kB / 352.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002351/0.134, allocations: 196.6 kB / 352.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.134, allocations: 0 / 352.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006727/0.1347, allocations: 156 kB / 352.4 MB, free: 11.21 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.000294/0.135, allocations: 147.1 kB / 352.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001426/0.1364, allocations: 0.6917 MB / 353.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1365, allocations: 4 kB / 353.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008249/0.1373, allocations: 479.6 kB / 353.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004776/0.1378, allocations: 40.41 kB / 353.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.1394, allocations: 0.8008 MB / 354.6 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004379/0.1399, allocations: 0.7929 MB / 355.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000192/0.1401, allocations: 66.94 kB / 355.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.1402, allocations: 35.41 kB / 355.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1402, allocations: 3.938 kB / 355.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of Templates: time 0.01422/0.1544, allocations: 7.774 MB / 363.3 MB, free: 300 kB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,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