Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.0009692/0.0009692, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001023/0.001023, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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.8752/0.8752, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/2.002e-05, allocations: 6.281 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002878/0.002898, allocations: 2.792 MB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.004063, allocations: 1.01 MB / 328.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.004187, allocations: 7.938 kB / 328.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002457/0.004433, allocations: 75.3 kB / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.004693, allocations: 170.7 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.004938, allocations: 191.6 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004066/0.005344, allocations: 0.6123 MB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.005505, allocations: 75.05 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.005802, allocations: 375.2 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.006028, allocations: 235.4 kB / 330 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.67e-05/0.006085, allocations: 48 kB / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.006206, allocations: 99.91 kB / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.006327, allocations: 131.6 kB / 330.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.006444, allocations: 171.6 kB / 330.5 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.006904, allocations: 0.6231 MB / 331.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.006906, allocations: 0 / 331.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.006907, allocations: 0 / 331.1 MB, free: 9.297 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.006913, allocations: 4 kB / 331.1 MB, free: 9.293 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.0008692/0.007782, allocations: 0.7077 MB / 331.8 MB, free: 8.555 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.007817, allocations: 15.98 kB / 331.8 MB, free: 8.539 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.908e-05/0.007916, allocations: 79.67 kB / 331.9 MB, free: 8.453 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.774e-05/0.007983, allocations: 48.66 kB / 331.9 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.008302, allocations: 264.5 kB / 332.2 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.008327, allocations: 29.38 kB / 332.2 MB, free: 8.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/0.008382, allocations: 36.38 kB / 332.3 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.008918, allocations: 450.8 kB / 332.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.008934, allocations: 4.141 kB / 332.7 MB, free: 7.605 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.008965, allocations: 24.12 kB / 332.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.008972, allocations: 8 kB / 332.7 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005879/0.00956, allocations: 447.7 kB / 333.2 MB, free: 7.137 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001473/0.01103, allocations: 1.144 MB / 334.3 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005841/0.01162, allocations: 373 kB / 334.7 MB, free: 5.555 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002796/0.0119, allocations: 230.2 kB / 334.9 MB, free: 5.328 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.01193, allocations: 4.5 kB / 334.9 MB, free: 5.324 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.01195, allocations: 43.06 kB / 335 MB, free: 5.273 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.412e-06/0.01195, allocations: 0 / 335 MB, free: 5.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.003166/0.01511, allocations: 1.957 MB / 336.9 MB, free: 3.254 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.01515, allocations: 67.78 kB / 337 MB, free: 3.176 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.01534, allocations: 269.8 kB / 337.2 MB, free: 2.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.01537, allocations: 41.7 kB / 337.3 MB, free: 2.859 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.434e-05/0.01545, allocations: 172.9 kB / 337.4 MB, free: 2.688 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.823e-05/0.01554, allocations: 194.4 kB / 337.6 MB, free: 2.496 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.01565, allocations: 94.33 kB / 337.7 MB, free: 2.398 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.602e-05/0.01574, allocations: 346.8 kB / 338.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/0.01603, allocations: 221.2 kB / 338.3 MB, free: 1.836 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.01635, allocations: 300 kB / 338.6 MB, free: 1.523 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004724/0.01682, allocations: 395 kB / 339 MB, free: 1.117 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.01683, allocations: 0 / 339 MB, free: 1.117 MB / 298.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009453/0.01777, allocations: 0.7183 MB / 339.7 MB, free: 388 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.01779, allocations: 11.28 kB / 339.7 MB, free: 380 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.01779, allocations: 0 / 339.7 MB, free: 380 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006514/0.01844, allocations: 430.2 kB / 340.1 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.01859, allocations: 71.89 kB / 340.2 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/0.02045, allocations: 3.431 MB / 343.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.0207, allocations: 79.91 kB / 343.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.02073, allocations: 20.14 kB / 343.7 MB, free: 12.09 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.0001542/0.02088, allocations: 170.9 kB / 343.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/0.02093, allocations: 35.77 kB / 343.9 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009671/0.0219, allocations: 0.7146 MB / 344.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.02191, allocations: 7.938 kB / 344.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-06/0.02191, allocations: 0 / 344.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.02191, allocations: 3.984 kB / 344.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.0233, allocations: 1.167 MB / 345.8 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.0233, allocations: 4 kB / 345.8 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001458/0.02345, allocations: 55.91 kB / 345.9 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005558/0.02401, allocations: 406.1 kB / 346.3 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.02403, allocations: 19.98 kB / 346.3 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001698/0.02573, allocations: 3.396 MB / 349.7 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.02573, allocations: 384 / 349.7 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.02695, allocations: 1.023 MB / 350.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.02708, allocations: 87.72 kB / 350.8 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.02713, allocations: 20 kB / 350.8 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.02736, allocations: 67.91 kB / 350.9 MB, free: 4.555 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.02751, allocations: 100.2 kB / 351 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.02753, allocations: 23.97 kB / 351 MB, free: 4.434 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001235/0.02766, allocations: 189.2 kB / 351.2 MB, free: 4.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.02766, allocations: 0 / 351.2 MB, free: 4.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003113/0.02797, allocations: 120 kB / 351.3 MB, free: 4.133 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.002058/0.03003, allocations: 1.85 MB / 353.1 MB, free: 2.375 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009952/0.03102, allocations: 0.7519 MB / 353.9 MB, free: 1.594 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.03102, allocations: 0 / 353.9 MB, free: 1.594 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005045/0.03153, allocations: 0.5183 MB / 354.4 MB, free: 1.051 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.0319, allocations: 72.31 kB / 354.5 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004611/0.03651, allocations: 4.236 MB / 358.7 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/0.03665, allocations: 208.8 kB / 358.9 MB, free: 12.39 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.03676, allocations: 39.28 kB / 359 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.03689, allocations: 120.5 kB / 359.1 MB, free: 12.23 MB / 330.7 MB Notification: Performance of SimCode: time 7.51e-07/0.03689, allocations: 0 / 359.1 MB, free: 12.23 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02633/0.06322, allocations: 13.27 MB / 372.4 MB, free: 15.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/8.2, allocations: 4.062 kB / 372.4 MB, free: 15.05 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.866168816573918]