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.0008304/0.0008304, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.0008/0.0008, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 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 0.8361/0.8361, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.644e-06/1.644e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.852e-05/2.017e-05, allocations: 4.672 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00303/0.00305, allocations: 2.783 MB / 327.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.004176, allocations: 1.017 MB / 328.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.004302, allocations: 11.94 kB / 328.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002586/0.004561, allocations: 75.31 kB / 328.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002429/0.004804, allocations: 170.7 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002168/0.005021, allocations: 187.7 kB / 328.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005548/0.005575, allocations: 0.624 MB / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.005723, allocations: 71.05 kB / 329.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.006006, allocations: 359.3 kB / 329.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.00622, allocations: 243.4 kB / 330.1 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.006275, allocations: 48 kB / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.006388, allocations: 103.9 kB / 330.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.006501, allocations: 127.6 kB / 330.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.00661, allocations: 167.6 kB / 330.5 MB, free: 9.965 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004228/0.007033, allocations: 0.627 MB / 331.1 MB, free: 9.336 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.007035, allocations: 0 / 331.1 MB, free: 9.336 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.007036, allocations: 8 kB / 331.2 MB, free: 9.328 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.007042, allocations: 0 / 331.2 MB, free: 9.328 MB / 298.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.0008434/0.007886, allocations: 0.7107 MB / 331.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.007921, allocations: 12.03 kB / 331.9 MB, free: 8.578 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.37e-05/0.008014, allocations: 79.66 kB / 332 MB, free: 8.492 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.423e-05/0.008079, allocations: 48.66 kB / 332 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.00838, allocations: 268.4 kB / 332.3 MB, free: 8.156 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.008403, allocations: 29.38 kB / 332.3 MB, free: 8.125 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.734e-05/0.00845, allocations: 36.38 kB / 332.3 MB, free: 8.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000537/0.008987, allocations: 438.9 kB / 332.8 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.009003, allocations: 16.14 kB / 332.8 MB, free: 7.641 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.009031, allocations: 16.12 kB / 332.8 MB, free: 7.625 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.009038, allocations: 8 kB / 332.8 MB, free: 7.617 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000561/0.009599, allocations: 443.7 kB / 333.2 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.01143, allocations: 1.144 MB / 334.4 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000648/0.01207, allocations: 381 kB / 334.7 MB, free: 5.594 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.01236, allocations: 226.2 kB / 335 MB, free: 5.371 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.0124, allocations: 12.5 kB / 335 MB, free: 5.359 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.01242, allocations: 39.06 kB / 335 MB, free: 5.312 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.515e-06/0.01242, allocations: 0 / 335 MB, free: 5.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.003162/0.01558, allocations: 1.957 MB / 337 MB, free: 3.297 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.01562, allocations: 63.84 kB / 337 MB, free: 3.223 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.01582, allocations: 273.8 kB / 337.3 MB, free: 2.949 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.01586, allocations: 37.7 kB / 337.3 MB, free: 2.906 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.927e-05/0.01594, allocations: 176.9 kB / 337.5 MB, free: 2.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.01604, allocations: 194.4 kB / 337.7 MB, free: 2.539 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.01615, allocations: 98.33 kB / 337.8 MB, free: 2.438 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.266e-05/0.01623, allocations: 338.8 kB / 338.1 MB, free: 2.098 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.01652, allocations: 229.1 kB / 338.4 MB, free: 1.875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003161/0.01684, allocations: 288.1 kB / 338.6 MB, free: 1.574 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/0.01731, allocations: 395 kB / 339 MB, free: 1.168 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01731, allocations: 0 / 339 MB, free: 1.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009421/0.01825, allocations: 0.7222 MB / 339.7 MB, free: 436 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.01827, allocations: 4 kB / 339.7 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.01828, allocations: 4 kB / 339.8 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006649/0.01894, allocations: 431.4 kB / 340.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.01908, allocations: 67.91 kB / 340.2 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00194/0.02102, allocations: 3.441 MB / 343.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.02129, allocations: 76.14 kB / 343.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.02131, allocations: 27.94 kB / 343.8 MB, free: 12.12 MB / 314.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.0001653/0.02148, allocations: 162.4 kB / 343.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.48e-05/0.02153, allocations: 39.77 kB / 344 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009531/0.02248, allocations: 0.7068 MB / 344.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.02249, allocations: 11.94 kB / 344.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.02249, allocations: 0 / 344.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.0225, allocations: 3.984 kB / 344.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.02397, allocations: 1.163 MB / 345.9 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.02397, allocations: 4 kB / 345.9 MB, free: 9.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.02413, allocations: 55.91 kB / 345.9 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006502/0.02478, allocations: 406.1 kB / 346.3 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.02481, allocations: 19.98 kB / 346.3 MB, free: 9.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.0266, allocations: 3.396 MB / 349.7 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.0266, allocations: 8.094 kB / 349.7 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.02782, allocations: 1.012 MB / 350.8 MB, free: 4.781 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.02797, allocations: 83.81 kB / 350.8 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.02802, allocations: 23.98 kB / 350.9 MB, free: 4.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.02828, allocations: 71.91 kB / 350.9 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.02844, allocations: 100.2 kB / 351 MB, free: 4.508 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.721e-05/0.02847, allocations: 23.98 kB / 351.1 MB, free: 4.484 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001398/0.02861, allocations: 193.1 kB / 351.2 MB, free: 4.297 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02861, allocations: 0 / 351.2 MB, free: 4.297 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003753/0.02898, allocations: 120 kB / 351.4 MB, free: 4.18 MB / 314.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.002217/0.0312, allocations: 1.86 MB / 353.2 MB, free: 2.445 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009564/0.03216, allocations: 0.7558 MB / 354 MB, free: 1.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.03216, allocations: 256 / 354 MB, free: 1.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005067/0.03266, allocations: 0.5181 MB / 354.5 MB, free: 1.117 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.03307, allocations: 63.7 kB / 354.6 MB, free: 1.059 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004567/0.03763, allocations: 4.236 MB / 358.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.03777, allocations: 208.8 kB / 359 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000109/0.03788, allocations: 31.28 kB / 359 MB, free: 12.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.03801, allocations: 120.5 kB / 359.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of SimCode: time 9.21e-07/0.03801, allocations: 4 kB / 359.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.06546, allocations: 13.29 MB / 372.4 MB, free: 15.13 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/7.719, allocations: 9.797 kB / 372.4 MB, free: 15.13 MB / 346.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] 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: 9.292428752407432]