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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 173.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 221.4 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008358/0.0008357, allocations: 103.5 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.516e-05/3.519e-05, allocations: 4 kB / 343.8 MB, free: 4.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1367, allocations: 50.41 MB / 394.2 MB, free: 1.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4111/0.5478, allocations: 81.81 MB / 476.1 MB, free: 5.746 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.5481, allocations: 75.8 kB / 476.1 MB, free: 5.676 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0295/0.5776, allocations: 10.33 MB / 486.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5777, allocations: 7.938 kB / 486.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.117e-05/0.5777, allocations: 8 kB / 486.5 MB, free: 11.31 MB / 362.7 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.001095/0.5788, allocations: 0.5847 MB / 487.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.5789, allocations: 12.03 kB / 487.1 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003077/0.5792, allocations: 51.52 kB / 487.1 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004129/0.5796, allocations: 286.3 kB / 487.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/0.5798, allocations: 88.17 kB / 487.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.5799, allocations: 32 kB / 487.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006746/0.5806, allocations: 390.8 kB / 487.9 MB, free: 9.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.5806, allocations: 4 kB / 487.9 MB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.5807, allocations: 8 kB / 487.9 MB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.5807, allocations: 11.94 kB / 487.9 MB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006847/0.5814, allocations: 414.9 kB / 488.3 MB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.5828, allocations: 0.9117 MB / 489.2 MB, free: 8.363 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/0.5835, allocations: 349.4 kB / 489.6 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003462/0.5839, allocations: 198.2 kB / 489.8 MB, free: 7.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.206e-05/0.5839, allocations: 8.625 kB / 489.8 MB, free: 7.812 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.5839, allocations: 42.88 kB / 489.8 MB, free: 7.762 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.124e-06/0.5839, allocations: 0 / 489.8 MB, free: 7.762 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.00269/0.5866, allocations: 1.539 MB / 491.4 MB, free: 6.133 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.5867, allocations: 89.61 kB / 491.5 MB, free: 6.027 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.5869, allocations: 210.1 kB / 491.7 MB, free: 5.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.825e-05/0.587, allocations: 37.7 kB / 491.7 MB, free: 5.773 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.176e-05/0.5871, allocations: 133.1 kB / 491.8 MB, free: 5.637 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.5873, allocations: 181.4 kB / 492 MB, free: 5.457 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.82e-05/0.5873, allocations: 8 kB / 492 MB, free: 5.449 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5875, allocations: 346.8 kB / 492.3 MB, free: 5.102 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.5877, allocations: 169.1 kB / 492.5 MB, free: 4.934 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000312/0.5881, allocations: 208.7 kB / 492.7 MB, free: 4.723 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002787/0.5883, allocations: 159.2 kB / 492.9 MB, free: 4.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5884, allocations: 3.938 kB / 492.9 MB, free: 4.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008676/0.5892, allocations: 0.5471 MB / 493.4 MB, free: 4.004 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.5893, allocations: 8 kB / 493.4 MB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.5893, allocations: 4.031 kB / 493.4 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006737/0.59, allocations: 242.9 kB / 493.7 MB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.5903, allocations: 67.88 kB / 493.7 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003555/0.5938, allocations: 2.676 MB / 496.4 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.5942, allocations: 40.03 kB / 496.5 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-05/0.5943, allocations: 16 kB / 496.5 MB, free: 0.8242 MB / 362.7 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.5944, allocations: 135.3 kB / 496.6 MB, free: 0.6875 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.529e-05/0.5945, allocations: 35.58 kB / 496.6 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.5946, allocations: 55.02 kB / 496.7 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.5947, allocations: 12 kB / 496.7 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.5947, allocations: 0 / 496.7 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.5947, allocations: 3.984 kB / 496.7 MB, free: 0.5859 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.5965, allocations: 1.202 MB / 497.9 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.5966, allocations: 0 / 497.9 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003301/0.5969, allocations: 71.94 kB / 498 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005938/0.5975, allocations: 224.6 kB / 498.2 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.997e-05/0.5976, allocations: 15.98 kB / 498.2 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003222/0.6008, allocations: 2.568 MB / 0.489 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.6008, allocations: 8.094 kB / 0.4891 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.6021, allocations: 0.8613 MB / 0.4899 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000182/0.6023, allocations: 152.7 kB / 0.49 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/0.6024, allocations: 12 kB / 0.49 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/0.6027, allocations: 44.03 kB / 0.4901 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.6029, allocations: 76.45 kB / 0.4902 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.603, allocations: 20 kB / 0.4902 GB, free: 11.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001858/0.6031, allocations: 176.6 kB / 0.4904 GB, free: 10.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6032, allocations: 0 / 0.4904 GB, free: 10.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007351/0.6039, allocations: 159.9 kB / 0.4905 GB, free: 10.77 MB / 378.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002805/0.6042, allocations: 151 kB / 0.4906 GB, free: 10.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.6053, allocations: 0.6336 MB / 0.4913 GB, free: 9.973 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.6053, allocations: 0 / 0.4913 GB, free: 9.973 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006461/0.606, allocations: 447.4 kB / 0.4917 GB, free: 9.516 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.6063, allocations: 28.42 kB / 0.4917 GB, free: 9.488 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.6076, allocations: 0.6115 MB / 0.4923 GB, free: 8.855 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.608, allocations: 0.8049 MB / 0.4931 GB, free: 8.016 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002275/0.6082, allocations: 58.95 kB / 0.4932 GB, free: 7.957 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.6084, allocations: 35.41 kB / 0.4932 GB, free: 7.922 MB / 378.7 MB Notification: Performance of SimCode: time 2.846e-06/0.6084, allocations: 4 kB / 0.4932 GB, free: 7.918 MB / 378.7 MB Notification: Performance of Templates: time 0.01234/0.6207, allocations: 6.821 MB / 0.4999 GB, free: 1.117 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches