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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001833/0.003077, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004844/0.005938, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.887/0.887, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1596/1.047, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.978e-05/2.171e-05, allocations: 2.312 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004626/0.004648, allocations: 2.48 MB / 224.5 MB, free: 13.56 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.007001, allocations: 1.011 MB / 225.5 MB, free: 12.54 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001808/0.007182, allocations: 8 kB / 225.5 MB, free: 12.54 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.007396, allocations: 51.45 kB / 225.5 MB, free: 12.48 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006147/0.00801, allocations: 162.9 kB / 225.7 MB, free: 12.32 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004944/0.008505, allocations: 187.5 kB / 225.9 MB, free: 12.14 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006228/0.009127, allocations: 474.3 kB / 226.3 MB, free: 11.68 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.009313, allocations: 58.89 kB / 226.4 MB, free: 11.62 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005239/0.009837, allocations: 319.3 kB / 226.7 MB, free: 11.31 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003622/0.0102, allocations: 207.5 kB / 226.9 MB, free: 11.11 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 8.233e-05/0.01028, allocations: 39.94 kB / 226.9 MB, free: 11.07 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.01061, allocations: 123.9 kB / 227.1 MB, free: 10.95 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.01075, allocations: 91.72 kB / 227.2 MB, free: 10.86 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.01088, allocations: 99.81 kB / 227.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005235/0.01141, allocations: 342.8 kB / 227.6 MB, free: 10.42 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.386e-05/0.01142, allocations: 0 / 227.6 MB, free: 10.42 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.01142, allocations: 4 kB / 227.6 MB, free: 10.42 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.273e-05/0.01144, allocations: 0 / 227.6 MB, free: 10.42 MB / 234.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.001281/0.01273, allocations: 0.6399 MB / 228.2 MB, free: 9.754 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.01277, allocations: 8.031 kB / 228.2 MB, free: 9.746 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004349/0.01321, allocations: 150 kB / 228.4 MB, free: 9.582 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.01366, allocations: 225.8 kB / 228.6 MB, free: 9.332 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001466/0.0138, allocations: 144 kB / 228.7 MB, free: 9.168 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.146e-05/0.01388, allocations: 28.38 kB / 228.8 MB, free: 9.141 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.01446, allocations: 334 kB / 229.1 MB, free: 8.793 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.01448, allocations: 4.141 kB / 229.1 MB, free: 8.789 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.958e-05/0.01452, allocations: 20.12 kB / 229.1 MB, free: 8.77 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.01454, allocations: 8 kB / 229.1 MB, free: 8.762 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000413/0.01495, allocations: 195.2 kB / 229.3 MB, free: 8.574 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.01631, allocations: 0.5752 MB / 229.9 MB, free: 7.98 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004766/0.01678, allocations: 201.2 kB / 230.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.01697, allocations: 94.27 kB / 230.2 MB, free: 7.68 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.134e-05/0.01702, allocations: 8.5 kB / 230.2 MB, free: 7.672 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.01705, allocations: 39.06 kB / 230.2 MB, free: 7.625 MB / 234.7 MB Notification: Performance of pre-optimization done (n=49): time 2.214e-06/0.01705, allocations: 0 / 230.2 MB, free: 7.625 MB / 234.7 MB Notification: Performance of matching and sorting (n=55): time 0.003751/0.0208, allocations: 1.337 MB / 231.6 MB, free: 6.238 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.02085, allocations: 67.84 kB / 231.6 MB, free: 6.156 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002047/0.02105, allocations: 204 kB / 231.8 MB, free: 5.941 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.0211, allocations: 41.7 kB / 231.9 MB, free: 5.895 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.157e-05/0.02118, allocations: 133.1 kB / 232 MB, free: 5.762 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.02133, allocations: 178.4 kB / 232.2 MB, free: 5.586 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.02149, allocations: 94.08 kB / 232.3 MB, free: 5.488 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.02163, allocations: 346.7 kB / 232.6 MB, free: 5.141 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.0218, allocations: 71.8 kB / 232.7 MB, free: 5.07 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.02201, allocations: 137.7 kB / 232.8 MB, free: 4.922 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.02235, allocations: 209.1 kB / 233 MB, free: 4.711 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.02235, allocations: 4.031 kB / 233 MB, free: 4.707 MB / 234.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.000574/0.02293, allocations: 306.8 kB / 233.3 MB, free: 4.398 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.02295, allocations: 8 kB / 233.3 MB, free: 4.391 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.02296, allocations: 0 / 233.3 MB, free: 4.391 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006647/0.02363, allocations: 241.7 kB / 233.6 MB, free: 4.152 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.02391, allocations: 75.88 kB / 233.6 MB, free: 4.078 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002673/0.02658, allocations: 2.056 MB / 235.7 MB, free: 1.934 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001868/0.02676, allocations: 23.92 kB / 235.7 MB, free: 1.91 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.0268, allocations: 12 kB / 235.7 MB, free: 1.898 MB / 234.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.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.0001542/0.02696, allocations: 144.6 kB / 235.9 MB, free: 1.746 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.765e-05/0.02705, allocations: 39.97 kB / 235.9 MB, free: 1.707 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.775e-05/0.02712, allocations: 43.31 kB / 236 MB, free: 1.668 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.02713, allocations: 4 kB / 236 MB, free: 1.664 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.02713, allocations: 0 / 236 MB, free: 1.664 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.02714, allocations: 7.922 kB / 236 MB, free: 1.656 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.02841, allocations: 0.6675 MB / 236.6 MB, free: 0.957 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.02842, allocations: 8.031 kB / 236.6 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000294/0.02871, allocations: 75.89 kB / 236.7 MB, free: 0.875 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.02883, allocations: 47.75 kB / 236.8 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006011/0.02943, allocations: 228.6 kB / 237 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.02947, allocations: 15.98 kB / 237 MB, free: 0.5859 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002341/0.03181, allocations: 2.028 MB / 239 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.03181, allocations: 0 / 239 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005401/0.03235, allocations: 0.5115 MB / 239.5 MB, free: 13.94 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.342e-05/0.03238, allocations: 12 kB / 239.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.0325, allocations: 15.98 kB / 239.6 MB, free: 13.91 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.03262, allocations: 76.23 kB / 239.6 MB, free: 13.83 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.03264, allocations: 16.05 kB / 239.7 MB, free: 13.82 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.32e-05/0.0327, allocations: 64.88 kB / 239.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0327, allocations: 0 / 239.7 MB, free: 13.75 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003494/0.03305, allocations: 159.9 kB / 239.9 MB, free: 13.59 MB / 250.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) * 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.0002105/0.03326, allocations: 124.3 kB / 240 MB, free: 13.46 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005707/0.03384, allocations: 469.2 kB / 240.5 MB, free: 12.99 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/0.03385, allocations: 4 kB / 240.5 MB, free: 12.99 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003646/0.03421, allocations: 412.3 kB / 240.9 MB, free: 12.57 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.03451, allocations: 240.2 kB / 241.1 MB, free: 12.3 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.03737, allocations: 0.6572 MB / 241.8 MB, free: 11.62 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000106/0.03748, allocations: 118.3 kB / 241.9 MB, free: 11.48 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001091/0.03759, allocations: 43.09 kB / 241.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.03774, allocations: 95.34 kB / 242 MB, free: 11.34 MB / 250.7 MB Notification: Performance of SimCode: time 1.072e-06/0.03774, allocations: 0 / 242 MB, free: 11.34 MB / 250.7 MB Notification: Performance of Templates: time 0.01028/0.04801, allocations: 7.924 MB / 249.9 MB, free: 3.434 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8700896063819528]