Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001079/0.001079, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 57.09 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1099, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003904/0.1138, allocations: 2.536 MB / 361.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1155, allocations: 1.135 MB / 362.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.1156, allocations: 4 kB / 362.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.1159, allocations: 67.42 kB / 362.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003938/0.1163, allocations: 182.2 kB / 362.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.1166, allocations: 179.6 kB / 363 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004665/0.1171, allocations: 0.5141 MB / 363.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.1173, allocations: 98.53 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003164/0.1176, allocations: 231.3 kB / 363.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003322/0.118, allocations: 275.1 kB / 364.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.615e-05/0.118, allocations: 44 kB / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.1183, allocations: 135.9 kB / 364.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.1184, allocations: 115.7 kB / 364.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.1186, allocations: 207.1 kB / 364.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005202/0.1191, allocations: 0.5452 MB / 365.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1191, allocations: 0 / 365.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1191, allocations: 0 / 365.1 MB, free: 7.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1191, allocations: 0 / 365.1 MB, free: 7.098 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.001222/0.1204, allocations: 0.7094 MB / 365.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.1204, allocations: 12.03 kB / 365.8 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003828/0.1208, allocations: 56.53 kB / 365.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.1213, allocations: 323.3 kB / 366.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.1214, allocations: 100.6 kB / 366.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.1215, allocations: 28.38 kB / 366.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007482/0.1223, allocations: 417 kB / 366.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.1223, allocations: 4 kB / 366.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.852e-05/0.1223, allocations: 12 kB / 366.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.1224, allocations: 8 kB / 366.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009897/0.1233, allocations: 478.2 kB / 367.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.125, allocations: 0.9929 MB / 368.2 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008209/0.1259, allocations: 384.5 kB / 368.6 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000461/0.1263, allocations: 234.1 kB / 368.8 MB, free: 3.207 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.348e-05/0.1264, allocations: 8.422 kB / 368.8 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.1264, allocations: 43 kB / 368.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 1.573e-06/0.1264, allocations: 192 / 368.9 MB, free: 3.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005025/0.1315, allocations: 2.144 MB / 371 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.513e-05/0.1315, allocations: 89.67 kB / 371.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.1319, allocations: 268.9 kB / 371.4 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.446e-05/0.1319, allocations: 37.7 kB / 371.4 MB, free: 488 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.34e-05/0.132, allocations: 141.1 kB / 371.6 MB, free: 340 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.1322, allocations: 181.4 kB / 371.7 MB, free: 156 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.1323, allocations: 94.22 kB / 371.8 MB, free: 56 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1694/0.3017, allocations: 340.6 kB / 372.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006823/0.3024, allocations: 187.2 kB / 372.3 MB, free: 20.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005342/0.303, allocations: 246.2 kB / 372.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000875/0.3038, allocations: 384.3 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3039, allocations: 0.9375 kB / 373 MB, free: 20.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00137/0.3052, allocations: 0.6076 MB / 373.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.3053, allocations: 7.156 kB / 373.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.3053, allocations: 1.219 kB / 373.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008826/0.3062, allocations: 303.8 kB / 373.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.3065, allocations: 71.58 kB / 373.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.3101, allocations: 2.951 MB / 376.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.3105, allocations: 29.39 kB / 376.9 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.113e-05/0.3105, allocations: 19.77 kB / 376.9 MB, free: 17.81 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.0001765/0.3107, allocations: 161.3 kB / 377.1 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.735e-05/0.3108, allocations: 34.94 kB / 377.1 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.3109, allocations: 55.73 kB / 377.2 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3109, allocations: 9.828 kB / 377.2 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3109, allocations: 1.844 kB / 377.2 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.311, allocations: 2.859 kB / 377.2 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002161/0.3131, allocations: 1.289 MB / 378.5 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3131, allocations: 3.938 kB / 378.5 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003358/0.3135, allocations: 63.84 kB / 378.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007269/0.3142, allocations: 293.7 kB / 378.8 MB, free: 16.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.3e-05/0.3143, allocations: 19.25 kB / 378.9 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003255/0.3175, allocations: 2.843 MB / 381.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3175, allocations: 0 / 381.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001693/0.3192, allocations: 0.9551 MB / 382.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001773/0.3194, allocations: 158.9 kB / 382.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.436e-05/0.3195, allocations: 12.38 kB / 382.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003096/0.3198, allocations: 31.41 kB / 382.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.32, allocations: 77.66 kB / 382.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.3201, allocations: 20.08 kB / 382.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002204/0.3203, allocations: 201.3 kB / 383.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.492e-06/0.3203, allocations: 0 / 383.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006177/0.3209, allocations: 155.3 kB / 383.3 MB, free: 13.91 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.0008455/0.3218, allocations: 377.1 kB / 383.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.3231, allocations: 0.6934 MB / 384.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3232, allocations: 1.344 kB / 384.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007735/0.3239, allocations: 481.7 kB / 384.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.3244, allocations: 57.78 kB / 384.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.3258, allocations: 0.8065 MB / 385.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002235/0.326, allocations: 0.7958 MB / 386.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002269/0.3263, allocations: 81.3 kB / 386.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.3264, allocations: 40.66 kB / 386.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3264, allocations: 0 / 386.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of Templates: time 0.01317/0.3396, allocations: 8.23 MB / 394.8 MB, free: 8.996 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,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.smoothness,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