Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001226/0.001226, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.562/1.562, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009875/0.0009877, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.794e-05/2.796e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 47.58 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3613/0.4728, allocations: 80.08 MB / 450.1 MB, free: 13.22 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.4731, allocations: 70.98 kB / 450.2 MB, free: 13.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02699/0.5001, allocations: 9.399 MB / 459.6 MB, free: 5.227 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5001, allocations: 0 / 459.6 MB, free: 5.227 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.5002, allocations: 4 kB / 459.6 MB, free: 5.223 MB / 330.7 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.0009895/0.5012, allocations: 0.5567 MB / 460.1 MB, free: 4.641 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.5012, allocations: 8.031 kB / 460.1 MB, free: 4.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003273/0.5015, allocations: 47.61 kB / 460.2 MB, free: 4.586 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.502, allocations: 280.8 kB / 460.5 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.5021, allocations: 95.09 kB / 460.5 MB, free: 4.199 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/0.5022, allocations: 31.34 kB / 460.6 MB, free: 4.18 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000608/0.5028, allocations: 355.2 kB / 460.9 MB, free: 3.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.5029, allocations: 0 / 460.9 MB, free: 3.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.043e-05/0.5029, allocations: 12 kB / 460.9 MB, free: 3.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.5029, allocations: 4 kB / 460.9 MB, free: 3.836 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006005/0.5035, allocations: 374 kB / 461.3 MB, free: 3.473 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.5055, allocations: 1.171 MB / 462.5 MB, free: 2.227 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005439/0.506, allocations: 315 kB / 462.8 MB, free: 1.906 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.5063, allocations: 168.8 kB / 462.9 MB, free: 1.738 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.572e-05/0.5064, allocations: 4 kB / 463 MB, free: 1.734 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.5064, allocations: 42.56 kB / 463 MB, free: 1.684 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 1.954e-06/0.5064, allocations: 0 / 463 MB, free: 1.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.002367/0.5088, allocations: 1.319 MB / 464.3 MB, free: 276 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.5089, allocations: 88.86 kB / 464.4 MB, free: 168 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.5091, allocations: 189.6 kB / 464.6 MB, free: 15.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.404e-05/0.5092, allocations: 29.7 kB / 464.6 MB, free: 15.94 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.275e-05/0.5093, allocations: 140.6 kB / 464.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.5094, allocations: 150 kB / 464.9 MB, free: 15.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.413e-05/0.5094, allocations: 8 kB / 464.9 MB, free: 15.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.5096, allocations: 334.8 kB / 465.2 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.5098, allocations: 148.8 kB / 465.4 MB, free: 15.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.5102, allocations: 205.9 kB / 465.6 MB, free: 14.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.5104, allocations: 142.2 kB / 465.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.5104, allocations: 0 / 465.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008926/0.5113, allocations: 0.516 MB / 466.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.5114, allocations: 11.95 kB / 466.2 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.5114, allocations: 0 / 466.2 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007126/0.5121, allocations: 226.2 kB / 466.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.5124, allocations: 55.89 kB / 466.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003723/0.5161, allocations: 2.633 MB / 469.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002837/0.5164, allocations: 32 kB / 469.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.842e-05/0.5165, allocations: 19.98 kB / 469.2 MB, free: 11.17 MB / 346.7 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.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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.5166, allocations: 140.9 kB / 469.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.801e-05/0.5167, allocations: 23.72 kB / 469.4 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.5168, allocations: 38.78 kB / 469.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.5168, allocations: 4 kB / 469.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.5169, allocations: 0 / 469.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.5169, allocations: 3.984 kB / 469.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.5186, allocations: 1.027 MB / 470.4 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5186, allocations: 4 kB / 470.4 MB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.5188, allocations: 51.91 kB / 470.5 MB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006125/0.5195, allocations: 220.8 kB / 470.7 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.5195, allocations: 19.97 kB / 470.7 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003468/0.523, allocations: 2.582 MB / 473.3 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.523, allocations: 0 / 473.3 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/0.5243, allocations: 0.7435 MB / 474.1 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.5245, allocations: 144.8 kB / 474.2 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.13e-05/0.5246, allocations: 12 kB / 474.2 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002649/0.5249, allocations: 27.97 kB / 474.2 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.525, allocations: 63.88 kB / 474.3 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.764e-05/0.5251, allocations: 20.05 kB / 474.3 MB, free: 5.812 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001656/0.5253, allocations: 152.3 kB / 474.5 MB, free: 5.664 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5253, allocations: 0 / 474.5 MB, free: 5.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006539/0.5259, allocations: 152 kB / 474.6 MB, free: 5.516 MB / 346.7 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) * 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 (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.0002686/0.5262, allocations: 147.9 kB / 474.8 MB, free: 5.363 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.5273, allocations: 0.5788 MB / 475.3 MB, free: 4.766 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5273, allocations: 0 / 475.3 MB, free: 4.766 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006274/0.5279, allocations: 393.1 kB / 475.7 MB, free: 4.367 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003024/0.5282, allocations: 35.58 kB / 475.8 MB, free: 4.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.5293, allocations: 0.5165 MB / 476.3 MB, free: 3.797 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003943/0.5297, allocations: 0.784 MB / 477.1 MB, free: 2.984 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000222/0.5299, allocations: 66.94 kB / 477.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.53, allocations: 23.42 kB / 477.1 MB, free: 2.895 MB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.53, allocations: 0 / 477.1 MB, free: 2.895 MB / 346.7 MB Notification: Performance of Templates: time 0.01119/0.5412, allocations: 6.254 MB / 483.4 MB, free: 12.64 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches