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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 108.9 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001622/0.001622, allocations: 215.5 kB / 23.54 MB, free: 5.391 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 230.2 MB / 256.7 MB, free: 8.641 MB / 206.1 MB [Timeout remaining time 88] 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 0.001881/0.001881, allocations: 59.89 kB / 376.9 MB, free: 3.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2751, allocations: 53.32 MB / 430.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004218/0.2793, allocations: 2.47 MB / 432.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.2812, allocations: 1.057 MB / 433.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.2813, allocations: 11.94 kB / 433.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000319/0.2816, allocations: 67.48 kB / 433.8 MB, free: 4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004799/0.2821, allocations: 150.6 kB / 433.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003991/0.2825, allocations: 155.7 kB / 434.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005627/0.2831, allocations: 478.6 kB / 434.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.2832, allocations: 40.73 kB / 434.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002581/0.2835, allocations: 207.5 kB / 434.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.2838, allocations: 247.2 kB / 435 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.75e-05/0.2839, allocations: 39.98 kB / 435.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002657/0.2842, allocations: 127.9 kB / 435.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001622/0.2843, allocations: 115.7 kB / 435.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.2845, allocations: 167.2 kB / 435.5 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000671/0.2852, allocations: 0.4955 MB / 436 MB, free: 1.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2852, allocations: 0 / 436 MB, free: 1.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2852, allocations: 0 / 436 MB, free: 1.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.2852, allocations: 0 / 436 MB, free: 1.816 MB / 334.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.001399/0.2866, allocations: 0.6816 MB / 436.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2867, allocations: 11.97 kB / 436.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003314/0.287, allocations: 48.73 kB / 436.7 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005776/0.2876, allocations: 301.5 kB / 437 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.2877, allocations: 88.52 kB / 437.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-05/0.2878, allocations: 28.38 kB / 437.1 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007677/0.2886, allocations: 385.4 kB / 437.5 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.2886, allocations: 3.953 kB / 437.5 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.2886, allocations: 16 kB / 437.5 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.2886, allocations: 4 kB / 437.5 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009183/0.2895, allocations: 417.9 kB / 437.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.2919, allocations: 1.265 MB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007318/0.2926, allocations: 330 kB / 439.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003926/0.293, allocations: 168.7 kB / 439.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.293, allocations: 8.141 kB / 439.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.2931, allocations: 39.28 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.2931, allocations: 4 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005121/0.2982, allocations: 1.894 MB / 441.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.141e-05/0.2983, allocations: 88.86 kB / 441.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004093/0.2987, allocations: 242.4 kB / 441.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.764e-05/0.2987, allocations: 33.7 kB / 442 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.2988, allocations: 136.9 kB / 442.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.299, allocations: 162.6 kB / 442.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.2992, allocations: 90.06 kB / 442.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.2994, allocations: 334.8 kB / 442.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/0.2998, allocations: 168.8 kB / 442.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/0.3002, allocations: 225.9 kB / 443.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007603/0.301, allocations: 339.2 kB / 443.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.301, allocations: 0 / 443.4 MB, free: 9.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001353/0.3024, allocations: 0.5358 MB / 443.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.3024, allocations: 12 kB / 444 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.3024, allocations: 0 / 444 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.3034, allocations: 304.5 kB / 444.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.3037, allocations: 47.95 kB / 444.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004524/0.3082, allocations: 2.901 MB / 447.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.3085, allocations: 23.98 kB / 447.2 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/0.3085, allocations: 24.05 kB / 447.2 MB, free: 5.977 MB / 350.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.000223/0.3088, allocations: 154.2 kB / 447.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.171e-05/0.3089, allocations: 31.8 kB / 447.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.863e-05/0.309, allocations: 39 kB / 447.5 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.309, allocations: 7.938 kB / 447.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.309, allocations: 0 / 447.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.309, allocations: 3.984 kB / 447.5 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.311, allocations: 1.109 MB / 448.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.311, allocations: 0 / 448.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002357/0.3113, allocations: 43.95 kB / 448.6 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007817/0.312, allocations: 284.8 kB / 448.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.703e-05/0.3121, allocations: 11.98 kB / 448.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004199/0.3163, allocations: 2.847 MB / 451.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.3163, allocations: 4.062 kB / 451.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.3179, allocations: 0.8043 MB / 452.6 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.3181, allocations: 148.9 kB / 452.7 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.682e-05/0.3182, allocations: 11.94 kB / 452.7 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.3185, allocations: 32.03 kB / 452.8 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.3186, allocations: 63.89 kB / 452.8 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.3187, allocations: 15.98 kB / 452.8 MB, free: 136 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002471/0.3189, allocations: 184.8 kB / 453 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3189, allocations: 0 / 453 MB, free: 15.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006389/0.3196, allocations: 135.9 kB / 453.2 MB, free: 15.82 MB / 366.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.001355/0.3209, allocations: 381 kB / 453.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.3223, allocations: 0.5978 MB / 454.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3223, allocations: 0 / 454.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007726/0.3231, allocations: 413.2 kB / 454.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.3236, allocations: 39.77 kB / 454.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.325, allocations: 0.7478 MB / 455.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004577/0.3255, allocations: 0.7761 MB / 456.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.3256, allocations: 43.41 kB / 456.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3256, allocations: 0 / 456.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of Templates: time 0.01025/0.3359, allocations: 5.956 MB / 462.1 MB, free: 6.914 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] [Timeout remaining time 660] Reference file matches