Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00184/0.00184, allocations: 121.4 kB / 18.45 MB, free: 4.477 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002281/0.002281, allocations: 189.2 kB / 21.39 MB, free: 1.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 207.6 MB / 231.8 MB, free: 4.027 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 56.2 kB / 342.2 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08892/0.09058, allocations: 49.13 MB / 391.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004405/0.09499, allocations: 2.825 MB / 394.2 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.09688, allocations: 0.9433 MB / 395.1 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.09704, allocations: 7.938 kB / 395.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002174/0.09726, allocations: 55.44 kB / 395.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002486/0.0975, allocations: 115 kB / 395.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.09798, allocations: 203.6 kB / 395.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000583/0.09856, allocations: 0.5851 MB / 396.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.09875, allocations: 82.64 kB / 396.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/0.09905, allocations: 247.2 kB / 396.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003612/0.09941, allocations: 279 kB / 396.7 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.921e-05/0.09948, allocations: 44 kB / 396.7 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.09966, allocations: 103.9 kB / 396.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.09979, allocations: 107.7 kB / 396.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002107/0.1, allocations: 219 kB / 397.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000625/0.1006, allocations: 0.5331 MB / 397.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1006, allocations: 0 / 397.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1006, allocations: 0 / 397.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.1006, allocations: 0 / 397.7 MB, free: 2.379 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001384/0.102, allocations: 0.7481 MB / 398.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1021, allocations: 12.03 kB / 398.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.1022, allocations: 83.66 kB / 398.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.104e-05/0.1023, allocations: 44.66 kB / 398.6 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004898/0.1028, allocations: 314.7 kB / 398.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.558e-05/0.1028, allocations: 29.38 kB / 398.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.157e-05/0.1029, allocations: 40.33 kB / 398.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008425/0.1038, allocations: 446.4 kB / 399.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.1038, allocations: 0 / 399.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.181e-05/0.1038, allocations: 16 kB / 399.4 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.1038, allocations: 11.94 kB / 399.4 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009305/0.1048, allocations: 467.6 kB / 399.9 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.1071, allocations: 1.27 MB / 401.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007766/0.1079, allocations: 340.7 kB / 401.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004625/0.1083, allocations: 237.2 kB / 401.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.1084, allocations: 8.359 kB / 401.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.1084, allocations: 46.88 kB / 401.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.1084, allocations: 0 / 401.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005111/0.1135, allocations: 2.253 MB / 404 MB, free: 11.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.1136, allocations: 59.84 kB / 404.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.1138, allocations: 246.6 kB / 404.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.626e-05/0.1139, allocations: 41.69 kB / 404.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.114, allocations: 176.9 kB / 404.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.1142, allocations: 178.5 kB / 404.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.1144, allocations: 106.2 kB / 404.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1145, allocations: 342.8 kB / 405.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004654/0.115, allocations: 229 kB / 405.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005305/0.1155, allocations: 303.2 kB / 405.7 MB, free: 10 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008067/0.1163, allocations: 423.7 kB / 406.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1163, allocations: 0 / 406.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001619/0.1179, allocations: 0.7471 MB / 406.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.118, allocations: 8 kB / 406.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.118, allocations: 0 / 406.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001098/0.1191, allocations: 0.5491 MB / 407.4 MB, free: 8.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.1193, allocations: 67.89 kB / 407.4 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003305/0.1226, allocations: 3.665 MB / 411.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.1231, allocations: 75.89 kB / 411.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.1232, allocations: 16 kB / 411.2 MB, free: 4.113 MB / 334.1 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 (46): * Single equations (assignments): 43 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0002447/0.1234, allocations: 165.8 kB / 411.4 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.57e-05/0.1235, allocations: 39.73 kB / 411.4 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/0.125, allocations: 0.7092 MB / 412.1 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.1251, allocations: 4 kB / 412.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1251, allocations: 0 / 412.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.1251, allocations: 7.984 kB / 412.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002194/0.1273, allocations: 1.262 MB / 413.4 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1273, allocations: 0 / 413.4 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.1275, allocations: 51.91 kB / 413.4 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001002/0.1285, allocations: 0.5333 MB / 414 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.682e-05/0.1286, allocations: 27.97 kB / 414 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003195/0.1318, allocations: 3.618 MB / 417.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1318, allocations: 0 / 417.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.1337, allocations: 1.033 MB / 418.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.1339, allocations: 160.8 kB / 418.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.249e-05/0.134, allocations: 16.03 kB / 418.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000425/0.1344, allocations: 71.91 kB / 418.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002123/0.1347, allocations: 100.2 kB / 419 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.945e-05/0.1347, allocations: 19.97 kB / 419 MB, free: 11.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001835/0.1349, allocations: 178 kB / 419.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1349, allocations: 0 / 419.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005058/0.1354, allocations: 124 kB / 419.3 MB, free: 11.56 MB / 350.1 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002401/0.1378, allocations: 1.608 MB / 420.9 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.1393, allocations: 0.7667 MB / 421.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1393, allocations: 0 / 421.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008789/0.1402, allocations: 0.5216 MB / 422.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.1407, allocations: 60.47 kB / 422.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007303/0.148, allocations: 4.339 MB / 426.6 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.1485, allocations: 0.7996 MB / 427.4 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000156/0.1487, allocations: 31.28 kB / 427.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.1488, allocations: 123.3 kB / 427.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.1488, allocations: 0 / 427.5 MB, free: 3.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05071/0.1995, allocations: 13.43 MB / 441 MB, free: 5.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.02, allocations: 0 / 441 MB, free: 5.57 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 15.41968597099185]