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.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.001828/0.001828, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 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.002404/0.002404, allocations: 210.9 kB / 24.47 MB, free: 3.547 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.351/1.351, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 62.5 kB / 347.2 MB, free: 9.883 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2348, allocations: 49.16 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003555/0.2383, allocations: 2.631 MB / 399 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.24, allocations: 0.9107 MB / 399.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.2401, allocations: 5.438 kB / 399.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.2404, allocations: 62.33 kB / 400 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000256/0.2406, allocations: 113.1 kB / 400.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005494/0.2412, allocations: 213.7 kB / 400.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005273/0.2417, allocations: 0.5722 MB / 400.8 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.2419, allocations: 81.73 kB / 400.9 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002759/0.2421, allocations: 253.7 kB / 401.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003133/0.2424, allocations: 253 kB / 401.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.73e-05/0.2425, allocations: 44.78 kB / 401.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.2427, allocations: 96.58 kB / 401.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.2428, allocations: 115.7 kB / 401.7 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.243, allocations: 185.8 kB / 401.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005247/0.2435, allocations: 0.5478 MB / 402.4 MB, free: 5.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2435, allocations: 0 / 402.4 MB, free: 5.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2435, allocations: 1.188 kB / 402.4 MB, free: 5.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.2435, allocations: 5.172 kB / 402.4 MB, free: 5.328 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.001165/0.2447, allocations: 0.6567 MB / 403.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2447, allocations: 17.61 kB / 403.1 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.2448, allocations: 77.94 kB / 403.2 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.645e-05/0.2449, allocations: 49.88 kB / 403.2 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004055/0.2453, allocations: 250.8 kB / 403.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.2454, allocations: 24.58 kB / 403.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.2454, allocations: 39.11 kB / 403.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008017/0.2462, allocations: 454.1 kB / 404 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.2463, allocations: 6.375 kB / 404 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.2463, allocations: 18.91 kB / 404 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.2463, allocations: 8.469 kB / 404 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009121/0.2472, allocations: 456.7 kB / 404.4 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.2493, allocations: 1.122 MB / 405.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007246/0.25, allocations: 343.4 kB / 405.9 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004363/0.2505, allocations: 232.8 kB / 406.1 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.62e-05/0.2505, allocations: 4.844 kB / 406.1 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.2505, allocations: 38.81 kB / 406.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.605e-06/0.2505, allocations: 4 kB / 406.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.004676/0.2552, allocations: 1.954 MB / 408.1 MB, free: 2.453 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.487e-05/0.2552, allocations: 60.88 kB / 408.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/0.2555, allocations: 257.4 kB / 408.4 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.2555, allocations: 48.73 kB / 408.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.975e-05/0.2556, allocations: 170.2 kB / 408.6 MB, free: 2.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.2557, allocations: 176.8 kB / 408.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.2559, allocations: 102.1 kB / 408.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.678e-05/0.2559, allocations: 340.7 kB / 409.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000452/0.2564, allocations: 234.3 kB / 409.5 MB, free: 1.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004574/0.2568, allocations: 305.7 kB / 409.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007094/0.2575, allocations: 421.1 kB / 410.2 MB, free: 1.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2575, allocations: 1.125 kB / 410.2 MB, free: 1.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001421/0.259, allocations: 0.7529 MB / 410.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.259, allocations: 5.312 kB / 410.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.259, allocations: 5.297 kB / 411 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000955/0.2599, allocations: 0.5408 MB / 411.5 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.2602, allocations: 77.55 kB / 411.6 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003146/0.2634, allocations: 3.444 MB / 415 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005339/0.2639, allocations: 75.53 kB / 415.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/0.2639, allocations: 17.5 kB / 415.1 MB, free: 13.02 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.0002628/0.2642, allocations: 179 kB / 415.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.578e-05/0.2643, allocations: 36.12 kB / 415.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.2659, allocations: 0.7047 MB / 416 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.2659, allocations: 4.375 kB / 416 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2659, allocations: 1.125 kB / 416 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.2659, allocations: 9.078 kB / 416 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.2681, allocations: 1.161 MB / 417.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2681, allocations: 1.219 kB / 417.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.2684, allocations: 54.41 kB / 417.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009962/0.2694, allocations: 0.5311 MB / 417.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.809e-05/0.2695, allocations: 20.09 kB / 417.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003017/0.2725, allocations: 3.411 MB / 421.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.2725, allocations: 0 / 421.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002015/0.2745, allocations: 1.032 MB / 422.2 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.2748, allocations: 82.67 kB / 422.3 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.206e-05/0.2748, allocations: 25.34 kB / 422.3 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/0.2753, allocations: 65.12 kB / 422.4 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.2755, allocations: 91.94 kB / 422.5 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-05/0.2756, allocations: 30.41 kB / 422.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.2757, allocations: 176 kB / 422.7 MB, free: 7.168 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2757, allocations: 0 / 422.7 MB, free: 7.168 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005545/0.2763, allocations: 127.2 kB / 422.8 MB, free: 7.148 MB / 334.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.002508/0.2788, allocations: 1.592 MB / 424.4 MB, free: 6.012 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.2805, allocations: 0.7671 MB / 425.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2805, allocations: 0 / 425.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009564/0.2814, allocations: 0.5216 MB / 425.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005957/0.282, allocations: 48.47 kB / 425.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007991/0.29, allocations: 4.359 MB / 430.1 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002575/0.2903, allocations: 207.1 kB / 430.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001807/0.2905, allocations: 39.28 kB / 430.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.2906, allocations: 107.4 kB / 430.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.2906, allocations: 0 / 430.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04944/0.3401, allocations: 12.58 MB / 443 MB, free: 3.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/13.72, allocations: 4.062 kB / 443 MB, free: 3.168 MB / 350.1 MB " [Timeout remaining time 646] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 16.28881010785699]