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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001086/0.001086, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00106/0.002146, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006832/0.0006832, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009281/0.001611, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9772/0.9772, allocations: 177.5 MB / 190 MB, free: 4.816 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09209/1.069, allocations: 53.87 MB / 243.9 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] 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=1000,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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.032e-05/2.175e-05, allocations: 2.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002619/0.00264, allocations: 2.5 MB / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.004023, allocations: 1.064 MB / 248.8 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.004142, allocations: 4 kB / 248.8 MB, free: 10 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.004332, allocations: 71.36 kB / 248.8 MB, free: 9.934 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003241/0.004656, allocations: 160 kB / 249 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002572/0.004914, allocations: 163.6 kB / 249.2 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.005267, allocations: 474.6 kB / 249.6 MB, free: 9.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.005387, allocations: 58.73 kB / 249.7 MB, free: 9.094 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003281/0.005715, allocations: 295.6 kB / 250 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.005938, allocations: 211.5 kB / 250.2 MB, free: 8.598 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.745e-05/0.005985, allocations: 40 kB / 250.2 MB, free: 8.559 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001938/0.006179, allocations: 123.8 kB / 250.3 MB, free: 8.438 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.719e-05/0.006266, allocations: 75.8 kB / 250.4 MB, free: 8.363 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.692e-05/0.006343, allocations: 95.81 kB / 250.5 MB, free: 8.27 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000355/0.006698, allocations: 354.8 kB / 250.8 MB, free: 7.922 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.272e-05/0.006711, allocations: 0 / 250.8 MB, free: 7.922 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006712, allocations: 0 / 250.8 MB, free: 7.922 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.00672, allocations: 4 kB / 250.8 MB, free: 7.918 MB / 250.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.0007462/0.007466, allocations: 0.628 MB / 251.5 MB, free: 7.266 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.007498, allocations: 8.625 kB / 251.5 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004132/0.007912, allocations: 149.9 kB / 251.6 MB, free: 7.094 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.008203, allocations: 223.4 kB / 251.8 MB, free: 6.844 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.767e-05/0.008301, allocations: 140 kB / 252 MB, free: 6.684 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.008345, allocations: 32.38 kB / 252 MB, free: 6.652 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003551/0.0087, allocations: 319.6 kB / 252.3 MB, free: 6.312 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.008713, allocations: 192 / 252.3 MB, free: 6.312 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.008738, allocations: 20.11 kB / 252.3 MB, free: 6.293 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.008745, allocations: 8 kB / 252.4 MB, free: 6.285 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002411/0.008986, allocations: 187.1 kB / 252.5 MB, free: 6.102 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.01002, allocations: 0.82 MB / 253.4 MB, free: 5.246 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002425/0.01027, allocations: 162.5 kB / 253.5 MB, free: 5.078 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.388e-05/0.01036, allocations: 81.48 kB / 253.6 MB, free: 4.996 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.01039, allocations: 15.95 kB / 253.6 MB, free: 4.98 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.01042, allocations: 34.56 kB / 253.6 MB, free: 4.938 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.673e-06/0.01042, allocations: 0 / 253.6 MB, free: 4.938 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002015/0.01243, allocations: 1.169 MB / 254.8 MB, free: 3.711 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.01247, allocations: 59.16 kB / 254.9 MB, free: 3.641 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005617/0.01303, allocations: 217.7 kB / 255.1 MB, free: 3.414 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.01306, allocations: 33.7 kB / 255.1 MB, free: 3.375 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.44e-05/0.01314, allocations: 136.8 kB / 255.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.333e-05/0.01323, allocations: 150.7 kB / 255.4 MB, free: 3.09 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.01333, allocations: 86.14 kB / 255.5 MB, free: 3 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.01344, allocations: 338.8 kB / 255.8 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.01355, allocations: 59.75 kB / 255.9 MB, free: 2.602 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.01369, allocations: 148.2 kB / 256 MB, free: 2.43 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.0139, allocations: 209.8 kB / 256.2 MB, free: 2.207 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.01391, allocations: 0 / 256.2 MB, free: 2.207 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003875/0.01429, allocations: 286.2 kB / 256.5 MB, free: 1.922 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.01432, allocations: 8 kB / 256.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.01433, allocations: 0 / 256.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000437/0.01476, allocations: 221.2 kB / 256.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.01492, allocations: 71.88 kB / 256.8 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.01689, allocations: 2.04 MB / 258.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.01701, allocations: 23.92 kB / 258.9 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.01704, allocations: 19.97 kB / 258.9 MB, free: 15.46 MB / 266.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.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.0001111/0.01715, allocations: 132.7 kB / 259 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-05/0.0172, allocations: 31.98 kB / 259 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.271e-05/0.01726, allocations: 50.95 kB / 259.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.01726, allocations: 4 kB / 259.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.01726, allocations: 3.938 kB / 259.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.01727, allocations: 7.969 kB / 259.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000737/0.01801, allocations: 0.5671 MB / 259.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.01801, allocations: 0 / 259.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001504/0.01816, allocations: 67.81 kB / 259.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.143e-05/0.01824, allocations: 43.81 kB / 259.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003581/0.0186, allocations: 216.1 kB / 260 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/0.01862, allocations: 15.98 kB / 260 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001652/0.02027, allocations: 2.03 MB / 262 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.02028, allocations: 4.031 kB / 262 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007946/0.02107, allocations: 461.8 kB / 262.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.0211, allocations: 4 kB / 262.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.02121, allocations: 23.92 kB / 262.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.02131, allocations: 63.86 kB / 262.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.02133, allocations: 15.92 kB / 262.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.666e-05/0.0214, allocations: 64.88 kB / 262.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0214, allocations: 4 kB / 262.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003661/0.02177, allocations: 140 kB / 262.8 MB, free: 11.39 MB / 266.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) * 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.001287/0.02305, allocations: 0.4911 MB / 263.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005685/0.02362, allocations: 441.6 kB / 263.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/0.02363, allocations: 4 kB / 263.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003308/0.02397, allocations: 372.1 kB / 264.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.02429, allocations: 244.2 kB / 264.3 MB, free: 9.984 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.02664, allocations: 0.5654 MB / 264.9 MB, free: 9.391 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.601e-05/0.02673, allocations: 109.9 kB / 265 MB, free: 9.258 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.02685, allocations: 62.94 kB / 265.1 MB, free: 9.191 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.02699, allocations: 95.33 kB / 265.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of SimCode: time 1.303e-06/0.02699, allocations: 4 kB / 265.2 MB, free: 9.094 MB / 266.7 MB Notification: Performance of Templates: time 0.00991/0.0369, allocations: 7.927 MB / 273.1 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] 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","",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.745036570355296]