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.001333/0.001333, allocations: 77.94 kB / 21.25 MB, free: 0.5469 MB / 14.72 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.001713/0.001713, allocations: 159.7 kB / 24.5 MB, free: 3.719 MB / 14.72 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 1.428/1.428, allocations: 177.1 MB / 204.7 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 178] 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.001908/0.001908, allocations: 57.83 kB / 325.5 MB, free: 192 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09346/0.09537, allocations: 53.39 MB / 378.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003979/0.09934, allocations: 2.34 MB / 381.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.1013, allocations: 1.007 MB / 382.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.1014, allocations: 7.938 kB / 382.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.1017, allocations: 63.48 kB / 382.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004601/0.1021, allocations: 151.2 kB / 382.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004022/0.1025, allocations: 163.7 kB / 382.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006281/0.1032, allocations: 470.7 kB / 383.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1033, allocations: 44.91 kB / 383.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.1036, allocations: 207.5 kB / 383.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003765/0.1039, allocations: 231.2 kB / 383.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.855e-05/0.104, allocations: 40 kB / 383.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002449/0.1043, allocations: 120 kB / 383.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.1044, allocations: 107.7 kB / 383.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.1046, allocations: 163.3 kB / 384 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006281/0.1052, allocations: 0.4904 MB / 384.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1052, allocations: 4 kB / 384.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1052, allocations: 0 / 384.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1052, allocations: 0 / 384.5 MB, free: 9.879 MB / 350.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.001335/0.1066, allocations: 0.5946 MB / 385.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.1066, allocations: 11.98 kB / 385.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.1069, allocations: 48.73 kB / 385.1 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005478/0.1075, allocations: 243.9 kB / 385.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.1076, allocations: 140 kB / 385.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.768e-05/0.1077, allocations: 32.38 kB / 385.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007716/0.1085, allocations: 416.4 kB / 385.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.1085, allocations: 7.953 kB / 385.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.1085, allocations: 8 kB / 385.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.1085, allocations: 8 kB / 386 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008726/0.1094, allocations: 406.3 kB / 386.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002158/0.1116, allocations: 1.107 MB / 387.5 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009047/0.1125, allocations: 312.5 kB / 387.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004006/0.1129, allocations: 169.5 kB / 387.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.1129, allocations: 7.984 kB / 387.9 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.639e-05/0.113, allocations: 46.5 kB / 388 MB, free: 6.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 6.602e-06/0.113, allocations: 4 kB / 388 MB, free: 6.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005121/0.1181, allocations: 1.652 MB / 389.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.87e-05/0.1182, allocations: 84.86 kB / 389.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003774/0.1186, allocations: 250.7 kB / 390 MB, free: 4.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.1186, allocations: 37.7 kB / 390 MB, free: 4.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1187, allocations: 137 kB / 390.1 MB, free: 3.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.1189, allocations: 170.6 kB / 390.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.119, allocations: 90.06 kB / 390.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.1192, allocations: 334.8 kB / 390.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/0.1197, allocations: 164.9 kB / 390.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004727/0.1201, allocations: 256.2 kB / 391.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007437/0.1209, allocations: 340.2 kB / 391.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1209, allocations: 0 / 391.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001277/0.1222, allocations: 0.5411 MB / 392 MB, free: 2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.1222, allocations: 7.281 kB / 392 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1222, allocations: 4.125 kB / 392 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008651/0.123, allocations: 288.6 kB / 392.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.1233, allocations: 59.89 kB / 392.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004676/0.128, allocations: 2.709 MB / 395.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.1283, allocations: 28.08 kB / 395.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.617e-05/0.1284, allocations: 23.97 kB / 395.1 MB, free: 14.79 MB / 366.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.0002179/0.1286, allocations: 157.7 kB / 395.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.449e-05/0.1287, allocations: 27.81 kB / 395.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.1288, allocations: 43 kB / 395.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1288, allocations: 4 kB / 395.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1288, allocations: 0 / 395.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1288, allocations: 3.984 kB / 395.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/0.1308, allocations: 0.9766 MB / 396.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.1308, allocations: 4 kB / 396.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.1311, allocations: 51.89 kB / 396.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000891/0.132, allocations: 272.7 kB / 396.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.416e-05/0.132, allocations: 15.98 kB / 396.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004286/0.1363, allocations: 2.671 MB / 399.3 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.1363, allocations: 3.984 kB / 399.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.1381, allocations: 0.808 MB / 400.1 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.1383, allocations: 71.8 kB / 400.2 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.02e-05/0.1383, allocations: 12 kB / 400.2 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000286/0.1386, allocations: 23.91 kB / 400.2 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.1388, allocations: 68 kB / 400.3 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.163e-05/0.1388, allocations: 23.92 kB / 400.3 MB, free: 9.395 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.1391, allocations: 180.5 kB / 400.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1391, allocations: 0 / 400.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006588/0.1398, allocations: 139.9 kB / 400.7 MB, free: 9.082 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.001497/0.1412, allocations: 389.5 kB / 401 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.1427, allocations: 0.5942 MB / 401.6 MB, free: 8.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.1427, allocations: 8.188 kB / 401.6 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008752/0.1436, allocations: 413.9 kB / 402 MB, free: 7.781 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004373/0.144, allocations: 43.62 kB / 402.1 MB, free: 7.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.1455, allocations: 0.7103 MB / 402.8 MB, free: 7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002032/0.1457, allocations: 171.8 kB / 403 MB, free: 6.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003523/0.1461, allocations: 74.92 kB / 403 MB, free: 6.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.1462, allocations: 36.47 kB / 403.1 MB, free: 6.707 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1462, allocations: 3.938 kB / 403.1 MB, free: 6.703 MB / 366.1 MB Notification: Performance of Templates: time 0.01453/0.1607, allocations: 6.992 MB / 410.1 MB, free: 15.75 MB / 382.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 -s ida -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 [Calling sys.exit(0), Time elapsed: 4.552143746986985]