Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001297/0.001297, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.586/1.586, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00266/0.00266, allocations: 64.42 kB / 307 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1125, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004132/0.1167, allocations: 2.446 MB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.1184, allocations: 1.053 MB / 361 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.1185, allocations: 11.94 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.1188, allocations: 59.5 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004144/0.1193, allocations: 158.4 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.1196, allocations: 159.7 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000482/0.1201, allocations: 470.6 kB / 361.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.1203, allocations: 68.69 kB / 361.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.1205, allocations: 203.5 kB / 362.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003223/0.1208, allocations: 247.2 kB / 362.4 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.107e-05/0.1209, allocations: 36 kB / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002334/0.1212, allocations: 119.9 kB / 362.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1213, allocations: 111.7 kB / 362.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.1215, allocations: 175.2 kB / 362.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005805/0.1221, allocations: 0.491 MB / 363.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1221, allocations: 3.938 kB / 363.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1221, allocations: 0 / 363.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.1221, allocations: 0 / 363.3 MB, free: 8.266 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00133/0.1235, allocations: 0.6628 MB / 364 MB, free: 7.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1235, allocations: 8.031 kB / 364 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003221/0.1239, allocations: 48.55 kB / 364 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004651/0.1243, allocations: 301.4 kB / 364.3 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.1245, allocations: 92.5 kB / 364.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.305e-05/0.1246, allocations: 32.28 kB / 364.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007489/0.1253, allocations: 377.4 kB / 364.8 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.1254, allocations: 0 / 364.8 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.951e-05/0.1254, allocations: 15.98 kB / 364.8 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.1254, allocations: 12 kB / 364.8 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008848/0.1263, allocations: 417.9 kB / 365.2 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002171/0.1285, allocations: 1.261 MB / 366.5 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007519/0.1293, allocations: 346.4 kB / 366.8 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004046/0.1297, allocations: 184.8 kB / 367 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.1297, allocations: 8.141 kB / 367 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.1298, allocations: 39.28 kB / 367.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.553e-06/0.1298, allocations: 0 / 367.1 MB, free: 4.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.00507/0.1349, allocations: 1.905 MB / 369 MB, free: 2.266 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.283e-05/0.135, allocations: 84.86 kB / 369.1 MB, free: 2.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.1353, allocations: 254.1 kB / 369.3 MB, free: 1.902 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.1354, allocations: 33.7 kB / 369.3 MB, free: 1.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.1355, allocations: 140.6 kB / 369.5 MB, free: 1.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.1356, allocations: 145.9 kB / 369.6 MB, free: 1.578 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.1358, allocations: 82.11 kB / 369.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.136, allocations: 338.8 kB / 370 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/0.1364, allocations: 164.8 kB / 370.2 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004479/0.1368, allocations: 229.9 kB / 370.4 MB, free: 0.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007426/0.1376, allocations: 335.2 kB / 370.7 MB, free: 420 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1376, allocations: 3.938 kB / 370.7 MB, free: 416 kB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.1432/0.2808, allocations: 0.5424 MB / 371.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.2809, allocations: 6.453 kB / 371.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.2809, allocations: 1.656 kB / 371.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008695/0.2818, allocations: 298.3 kB / 371.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002872/0.2821, allocations: 52.97 kB / 371.6 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003418/0.2855, allocations: 2.901 MB / 374.5 MB, free: 18.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.2858, allocations: 26.22 kB / 374.6 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.484e-05/0.2858, allocations: 21.61 kB / 374.6 MB, free: 18.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.286, allocations: 150.3 kB / 374.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.004e-05/0.2861, allocations: 28.09 kB / 374.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.341e-05/0.2862, allocations: 52.41 kB / 374.8 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.2862, allocations: 6.219 kB / 374.8 MB, free: 18.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2862, allocations: 5.859 kB / 374.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.2862, allocations: 2.156 kB / 374.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.288, allocations: 1.107 MB / 375.9 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.288, allocations: 5.125 kB / 375.9 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.2883, allocations: 58.92 kB / 376 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006968/0.289, allocations: 283.4 kB / 376.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/0.289, allocations: 14.55 kB / 376.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003257/0.2923, allocations: 2.841 MB / 379.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2923, allocations: 3.938 kB / 379.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.2938, allocations: 0.8116 MB / 379.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.2939, allocations: 150.5 kB / 380.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.968e-05/0.294, allocations: 7.234 kB / 380.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.2942, allocations: 25.33 kB / 380.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.2944, allocations: 65.11 kB / 380.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.31e-05/0.2945, allocations: 17.72 kB / 380.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002037/0.2947, allocations: 182.9 kB / 380.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2947, allocations: 1.719 kB / 380.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006296/0.2953, allocations: 131.2 kB / 380.5 MB, free: 14.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.001266/0.2966, allocations: 381.6 kB / 380.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.2979, allocations: 0.6417 MB / 381.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2979, allocations: 0 / 381.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006373/0.2986, allocations: 435.5 kB / 381.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.2991, allocations: 47.97 kB / 382 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.3002, allocations: 0.7043 MB / 382.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.3004, allocations: 0.7793 MB / 383.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002148/0.3007, allocations: 71.45 kB / 383.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.3008, allocations: 36.12 kB / 383.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3008, allocations: 1.312 kB / 383.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of Templates: time 0.01296/0.3137, allocations: 7.564 MB / 391.1 MB, free: 10.42 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches