Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001983/0.001983, allocations: 88.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.00241/0.00241, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.495/1.495, allocations: 177.2 MB / 204.6 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.728e-05/2.866e-05, allocations: 6.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004873/0.004902, allocations: 2.783 MB / 275.1 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002445/0.007346, allocations: 1.013 MB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002259/0.007572, allocations: 8 kB / 276.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003369/0.007909, allocations: 79.23 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000489/0.008398, allocations: 162.8 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004601/0.008858, allocations: 203.5 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008041/0.009662, allocations: 0.6084 MB / 277.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.009865, allocations: 79.03 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006143/0.01048, allocations: 367.3 kB / 277.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004215/0.0109, allocations: 235.4 kB / 277.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.01101, allocations: 48 kB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002265/0.01123, allocations: 107.8 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.01141, allocations: 127.5 kB / 278.1 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000239/0.01165, allocations: 171.6 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008612/0.01251, allocations: 0.6192 MB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.01252, allocations: 4 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01252, allocations: 3.938 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.01253, allocations: 4 kB / 278.9 MB, free: 11.19 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001705/0.01423, allocations: 0.6999 MB / 279.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.01427, allocations: 16.03 kB / 279.6 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.01446, allocations: 68.66 kB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000556/0.01502, allocations: 276.5 kB / 280 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.064e-05/0.01506, allocations: 25.38 kB / 280 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.169e-05/0.01515, allocations: 36.38 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.01617, allocations: 438.9 kB / 280.4 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.0162, allocations: 12.06 kB / 280.5 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.329e-05/0.01625, allocations: 16.38 kB / 280.5 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.01627, allocations: 15.94 kB / 280.5 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.01738, allocations: 439.7 kB / 280.9 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002608/0.01999, allocations: 1.078 MB / 282 MB, free: 7.992 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.02101, allocations: 369.1 kB / 282.4 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005501/0.02156, allocations: 226.3 kB / 282.6 MB, free: 7.395 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.02161, allocations: 8.5 kB / 282.6 MB, free: 7.387 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.02165, allocations: 43.05 kB / 282.6 MB, free: 7.336 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.264e-06/0.02166, allocations: 4 kB / 282.6 MB, free: 7.332 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.006382/0.02804, allocations: 1.965 MB / 284.6 MB, free: 5.309 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.02809, allocations: 63.91 kB / 284.7 MB, free: 5.234 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003647/0.02846, allocations: 265.8 kB / 284.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.15e-05/0.02853, allocations: 41.7 kB / 285 MB, free: 4.918 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.0287, allocations: 172.9 kB / 285.1 MB, free: 4.746 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.02893, allocations: 198.4 kB / 285.3 MB, free: 4.551 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/0.02914, allocations: 94.33 kB / 285.4 MB, free: 4.453 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.02935, allocations: 342.8 kB / 285.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005708/0.02992, allocations: 221.2 kB / 286 MB, free: 3.895 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006278/0.03055, allocations: 296.1 kB / 286.2 MB, free: 3.586 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009465/0.03149, allocations: 394.9 kB / 286.6 MB, free: 3.188 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.0315, allocations: 4 kB / 286.6 MB, free: 3.184 MB / 266.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001877/0.03337, allocations: 0.7416 MB / 287.4 MB, free: 2.426 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.0334, allocations: 11.94 kB / 287.4 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.0334, allocations: 0 / 287.4 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.03464, allocations: 426.4 kB / 287.8 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.03495, allocations: 67.91 kB / 287.9 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.104/0.1389, allocations: 3.397 MB / 291.3 MB, free: 26.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006116/0.1395, allocations: 71.75 kB / 291.3 MB, free: 26.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.824e-05/0.1396, allocations: 24.91 kB / 291.4 MB, free: 26.7 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002371/0.1399, allocations: 161.2 kB / 291.5 MB, free: 26.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.14, allocations: 58.14 kB / 291.6 MB, free: 26.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.1416, allocations: 0.7023 MB / 292.3 MB, free: 26.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1416, allocations: 6.5 kB / 292.3 MB, free: 26.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1416, allocations: 3.469 kB / 292.3 MB, free: 26.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1416, allocations: 5.797 kB / 292.3 MB, free: 26.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002455/0.1441, allocations: 1.112 MB / 293.4 MB, free: 26.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.1441, allocations: 1.328 kB / 293.4 MB, free: 26.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.1444, allocations: 59.95 kB / 293.5 MB, free: 26.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.1454, allocations: 412 kB / 293.9 MB, free: 25.89 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-05/0.1455, allocations: 19.08 kB / 293.9 MB, free: 25.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002235/0.1477, allocations: 3.38 MB / 297.3 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1477, allocations: 0.6562 kB / 297.3 MB, free: 22.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/0.1498, allocations: 1.031 MB / 298.3 MB, free: 22.26 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.15, allocations: 87.42 kB / 298.4 MB, free: 22.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.905e-05/0.1501, allocations: 20.45 kB / 298.4 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005104/0.1506, allocations: 71.66 kB / 298.5 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002672/0.1508, allocations: 96.59 kB / 298.6 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.214e-05/0.1509, allocations: 21.25 kB / 298.6 MB, free: 22.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002059/0.1511, allocations: 188.9 kB / 298.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1511, allocations: 0 / 298.8 MB, free: 22.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005883/0.1517, allocations: 120.3 kB / 298.9 MB, free: 22.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001724/0.1534, allocations: 412.9 kB / 299.3 MB, free: 21.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.155, allocations: 0.755 MB / 300.1 MB, free: 21.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.155, allocations: 3.938 kB / 300.1 MB, free: 21.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008819/0.1559, allocations: 0.5125 MB / 300.6 MB, free: 21.24 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006188/0.1565, allocations: 112.3 kB / 300.7 MB, free: 21.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.1584, allocations: 0.9243 MB / 301.6 MB, free: 20.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.1586, allocations: 208.9 kB / 301.8 MB, free: 20.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.1588, allocations: 35.25 kB / 301.8 MB, free: 20.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.1589, allocations: 36.52 kB / 301.9 MB, free: 20.58 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.1589, allocations: 1.406 kB / 301.9 MB, free: 20.58 MB / 266.7 MB Notification: Performance of Templates: time 0.01416/0.1731, allocations: 8.8 MB / 310.7 MB, free: 15.54 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.731955004041083]