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.001274/0.001274, allocations: 116.5 kB / 18.5 MB, free: 4.434 MB / 14.72 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.001359/0.001359, allocations: 216.9 kB / 21.47 MB, free: 1.473 MB / 14.72 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 1.388/1.388, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001753/0.001753, allocations: 63.89 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.1004, allocations: 53.32 MB / 426.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004644/0.105, allocations: 2.965 MB / 429.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.1069, allocations: 1.064 MB / 430.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.107, allocations: 4 kB / 430.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003029/0.1073, allocations: 79.3 kB / 430.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003655/0.1077, allocations: 162.9 kB / 430.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.1081, allocations: 183.6 kB / 431.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1903/0.2983, allocations: 0.594 MB / 431.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002518/0.2986, allocations: 78.03 kB / 431.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003996/0.299, allocations: 266.7 kB / 432 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.2993, allocations: 292.8 kB / 432.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.562e-05/0.2994, allocations: 47.91 kB / 432.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.2996, allocations: 104.6 kB / 432.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.2997, allocations: 124.9 kB / 432.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.2999, allocations: 237.2 kB / 432.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005285/0.3004, allocations: 0.5887 MB / 433.4 MB, free: 7.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3004, allocations: 0 / 433.4 MB, free: 7.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3004, allocations: 0 / 433.4 MB, free: 7.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.3005, allocations: 0 / 433.4 MB, free: 7.375 MB / 350.1 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.001162/0.3016, allocations: 0.7851 MB / 434.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.3016, allocations: 9.344 kB / 434.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.3018, allocations: 87.52 kB / 434.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.114e-05/0.3018, allocations: 47.16 kB / 434.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.3022, allocations: 326.6 kB / 434.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.3023, allocations: 29.47 kB / 434.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-05/0.3023, allocations: 37.72 kB / 434.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.3031, allocations: 450.1 kB / 435.2 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.3031, allocations: 6.969 kB / 435.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.3032, allocations: 21.38 kB / 435.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.3032, allocations: 8.031 kB / 435.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008837/0.304, allocations: 448.8 kB / 435.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/0.3062, allocations: 1.295 MB / 436.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007973/0.307, allocations: 385.6 kB / 437.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004215/0.3074, allocations: 237.1 kB / 437.5 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.3075, allocations: 8.281 kB / 437.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.533e-05/0.3075, allocations: 37.16 kB / 437.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.674e-06/0.3075, allocations: 1.312 kB / 437.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.004774/0.3122, allocations: 2.253 MB / 439.8 MB, free: 4.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.427e-05/0.3123, allocations: 57.12 kB / 439.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.3125, allocations: 265.8 kB / 440.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.393e-05/0.3126, allocations: 44.19 kB / 440.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.645e-05/0.3127, allocations: 176.8 kB / 440.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.3128, allocations: 193.4 kB / 440.6 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.3129, allocations: 103.3 kB / 440.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.129e-05/0.313, allocations: 342 kB / 441 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004299/0.3134, allocations: 220.8 kB / 441.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004756/0.3139, allocations: 286.9 kB / 441.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007544/0.3146, allocations: 399.6 kB / 441.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3146, allocations: 0.5312 kB / 441.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001453/0.3161, allocations: 0.7212 MB / 442.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.3161, allocations: 5.156 kB / 442.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3161, allocations: 1.562 kB / 442.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009439/0.3171, allocations: 434.8 kB / 443 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.3173, allocations: 65.03 kB / 443.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.3196, allocations: 3.647 MB / 446.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004957/0.3201, allocations: 72.52 kB / 446.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/0.3202, allocations: 19.23 kB / 446.8 MB, free: 15.52 MB / 366.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 (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.0002469/0.3204, allocations: 175.2 kB / 447 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/0.3205, allocations: 46.66 kB / 447.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001588/0.3221, allocations: 0.7094 MB / 447.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3221, allocations: 5.844 kB / 447.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3221, allocations: 1.156 kB / 447.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3221, allocations: 5.203 kB / 447.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002325/0.3244, allocations: 1.271 MB / 449 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3244, allocations: 4.688 kB / 449.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002641/0.3247, allocations: 55.12 kB / 449.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009954/0.3257, allocations: 403.4 kB / 449.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-05/0.3257, allocations: 27.61 kB / 449.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003279/0.329, allocations: 3.617 MB / 453.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.329, allocations: 2.719 kB / 453.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002151/0.3312, allocations: 1.011 MB / 454.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000312/0.3315, allocations: 160.5 kB / 454.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.755e-05/0.3316, allocations: 22.97 kB / 454.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000455/0.332, allocations: 73.56 kB / 454.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.3322, allocations: 92.88 kB / 454.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.3323, allocations: 19.23 kB / 454.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002172/0.3325, allocations: 196.2 kB / 454.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3325, allocations: 4 kB / 454.7 MB, free: 9.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005071/0.333, allocations: 118.6 kB / 454.8 MB, free: 9.902 MB / 366.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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003517/0.3365, allocations: 1.843 MB / 456.7 MB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.3382, allocations: 0.7505 MB / 457.4 MB, free: 8.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3382, allocations: 0 / 457.4 MB, free: 8.395 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009013/0.3391, allocations: 0.5181 MB / 457.9 MB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005568/0.3397, allocations: 66.59 kB / 458 MB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007536/0.3472, allocations: 4.299 MB / 462.3 MB, free: 5.453 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/0.3477, allocations: 0.8168 MB / 463.1 MB, free: 4.734 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.3479, allocations: 32.52 kB / 463.2 MB, free: 4.727 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/0.3481, allocations: 120.6 kB / 463.3 MB, free: 4.641 MB / 366.1 MB Notification: Performance of SimCode: time 1.283e-06/0.3481, allocations: 0 / 463.3 MB, free: 4.641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05788/0.406, allocations: 13.79 MB / 477.1 MB, free: 12.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.5, allocations: 7.859 kB / 477.1 MB, free: 12.75 MB / 382.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.211825076956302]