Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.0007847/0.0007847, allocations: 76.08 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.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.0007281/0.0007281, allocations: 149.4 kB / 23.93 MB, free: 0.625 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8608/0.8608, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.682e-05/1.874e-05, allocations: 2.281 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002874/0.002893, allocations: 2.641 MB / 321.1 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.004251, allocations: 0.8608 MB / 321.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.004406, allocations: 7.938 kB / 321.9 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.004612, allocations: 59.38 kB / 322 MB, free: 2.785 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002125/0.004824, allocations: 122.9 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004608/0.005285, allocations: 219.6 kB / 322.3 MB, free: 2.449 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.005716, allocations: 0.5848 MB / 322.9 MB, free: 1.863 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.005889, allocations: 78.97 kB / 323 MB, free: 1.777 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003171/0.006206, allocations: 347.3 kB / 323.3 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.006434, allocations: 223.5 kB / 323.5 MB, free: 1.219 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.805e-05/0.006482, allocations: 47.94 kB / 323.6 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.006615, allocations: 95.95 kB / 323.7 MB, free: 1.078 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.702e-05/0.006712, allocations: 115.6 kB / 323.8 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.006822, allocations: 159.7 kB / 323.9 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004829/0.007305, allocations: 0.5842 MB / 324.5 MB, free: 228 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.007307, allocations: 0 / 324.5 MB, free: 228 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.007308, allocations: 0 / 324.5 MB, free: 228 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.007314, allocations: 0 / 324.5 MB, free: 228 kB / 282.7 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.0009601/0.008274, allocations: 0.6646 MB / 325.2 MB, free: 15.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.008313, allocations: 12.92 kB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.906e-05/0.008412, allocations: 83.67 kB / 325.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.084e-05/0.008473, allocations: 40.7 kB / 325.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002909/0.008764, allocations: 260.5 kB / 325.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.008795, allocations: 29.38 kB / 325.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.703e-05/0.008842, allocations: 36.38 kB / 325.6 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005443/0.009386, allocations: 446.8 kB / 326.1 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.009401, allocations: 4.141 kB / 326.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.055e-05/0.009462, allocations: 20.12 kB / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.916e-06/0.009471, allocations: 8 kB / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005558/0.01003, allocations: 463.7 kB / 326.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.01148, allocations: 1.113 MB / 327.7 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.01198, allocations: 351.2 kB / 328 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002746/0.01226, allocations: 233.2 kB / 328.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.01229, allocations: 8.375 kB / 328.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.0123, allocations: 38.94 kB / 328.3 MB, free: 12.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.664e-06/0.0123, allocations: 0 / 328.3 MB, free: 12.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.003022/0.01533, allocations: 1.962 MB / 330.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.01536, allocations: 59.91 kB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.01552, allocations: 249.8 kB / 330.6 MB, free: 9.949 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.01556, allocations: 45.69 kB / 330.6 MB, free: 9.898 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.544e-05/0.01563, allocations: 176.8 kB / 330.8 MB, free: 9.719 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.971e-05/0.01572, allocations: 170.6 kB / 330.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.01583, allocations: 94.33 kB / 331 MB, free: 9.453 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.483e-05/0.01591, allocations: 346.8 kB / 331.4 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/0.01622, allocations: 233.2 kB / 331.6 MB, free: 8.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.01653, allocations: 304.1 kB / 331.9 MB, free: 8.562 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007273/0.01726, allocations: 422.8 kB / 332.3 MB, free: 8.129 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01726, allocations: 0 / 332.3 MB, free: 8.129 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009442/0.01821, allocations: 0.7495 MB / 333.1 MB, free: 7.363 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.01822, allocations: 8 kB / 333.1 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.01823, allocations: 4.125 kB / 333.1 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006546/0.01888, allocations: 0.5517 MB / 333.6 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.01902, allocations: 67.91 kB / 333.7 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001746/0.02077, allocations: 3.446 MB / 337.1 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/0.021, allocations: 76.22 kB / 337.2 MB, free: 2.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.02103, allocations: 19.98 kB / 337.2 MB, free: 2.938 MB / 298.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 (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.0001363/0.02117, allocations: 165.6 kB / 337.4 MB, free: 2.766 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.5e-05/0.02121, allocations: 35.77 kB / 337.4 MB, free: 2.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008798/0.02209, allocations: 0.7185 MB / 338.1 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.0221, allocations: 4 kB / 338.2 MB, free: 1.996 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.0221, allocations: 4 kB / 338.2 MB, free: 1.992 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.0221, allocations: 3.984 kB / 338.2 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/0.02335, allocations: 1.154 MB / 339.3 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.02336, allocations: 0 / 339.3 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.02349, allocations: 59.91 kB / 339.4 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007956/0.02429, allocations: 0.5255 MB / 339.9 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.02432, allocations: 19.92 kB / 339.9 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/0.02591, allocations: 3.413 MB / 343.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.02591, allocations: 0 / 343.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.02717, allocations: 1.031 MB / 344.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.02729, allocations: 79.78 kB / 344.4 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.453e-05/0.02734, allocations: 16 kB / 344.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.02756, allocations: 71.91 kB / 344.5 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.02771, allocations: 96.25 kB / 344.6 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.02773, allocations: 23.97 kB / 344.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000112/0.02784, allocations: 185.1 kB / 344.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02784, allocations: 3.938 kB / 344.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000323/0.02817, allocations: 127.9 kB / 345 MB, free: 10.84 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001483/0.02965, allocations: 1.595 MB / 346.5 MB, free: 9.211 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009578/0.03061, allocations: 0.7716 MB / 347.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.03061, allocations: 0 / 347.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004823/0.03109, allocations: 0.5181 MB / 347.8 MB, free: 7.867 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.03141, allocations: 63.52 kB / 347.9 MB, free: 7.809 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004534/0.03595, allocations: 4.266 MB / 352.2 MB, free: 3.414 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001425/0.03609, allocations: 195.2 kB / 352.4 MB, free: 3.199 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 9.572e-05/0.03619, allocations: 39.28 kB / 352.4 MB, free: 3.16 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.0363, allocations: 116.4 kB / 352.5 MB, free: 3.047 MB / 314.7 MB Notification: Performance of SimCode: time 5.01e-07/0.03631, allocations: 0 / 352.5 MB, free: 3.047 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.06485, allocations: 12.72 MB / 365.2 MB, free: 6.523 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.992/8.057, allocations: 3.984 kB / 365.2 MB, free: 6.52 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.676716707646847]