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.001338/0.001338, allocations: 112 kB / 20.43 MB, free: 1.457 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.001423/0.001423, allocations: 181.3 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.365/1.365, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001443/0.001443, allocations: 47.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2385, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004146/0.2427, allocations: 2.844 MB / 425.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.2443, allocations: 0.8921 MB / 426.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.2444, allocations: 11.94 kB / 426.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.2446, allocations: 63.38 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.2449, allocations: 107.1 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005064/0.2454, allocations: 219.6 kB / 426.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00065/0.246, allocations: 0.5733 MB / 427.3 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.2462, allocations: 79 kB / 427.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003457/0.2466, allocations: 251.3 kB / 427.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004097/0.247, allocations: 279 kB / 427.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.409e-05/0.2471, allocations: 44 kB / 428 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.2473, allocations: 95.94 kB / 428.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001496/0.2474, allocations: 119.6 kB / 428.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002193/0.2476, allocations: 215 kB / 428.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006751/0.2483, allocations: 0.5452 MB / 428.9 MB, free: 8.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2483, allocations: 0 / 428.9 MB, free: 8.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2483, allocations: 0 / 428.9 MB, free: 8.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.717e-06/0.2483, allocations: 0 / 428.9 MB, free: 8.285 MB / 334.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.001429/0.2498, allocations: 0.6728 MB / 429.6 MB, free: 7.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.2498, allocations: 8.031 kB / 429.6 MB, free: 7.574 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.2499, allocations: 75.72 kB / 429.7 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.901e-05/0.25, allocations: 48.66 kB / 429.7 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004355/0.2505, allocations: 252.9 kB / 430 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.2505, allocations: 25.38 kB / 430 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.633e-05/0.2506, allocations: 36.33 kB / 430 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008422/0.2514, allocations: 458.4 kB / 430.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.2514, allocations: 0 / 430.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.31e-05/0.2515, allocations: 16 kB / 430.5 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.2515, allocations: 11.98 kB / 430.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009557/0.2525, allocations: 459.7 kB / 431 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002453/0.2549, allocations: 1.214 MB / 432.2 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007813/0.2557, allocations: 343.7 kB / 432.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004582/0.2562, allocations: 233.2 kB / 432.7 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.347e-05/0.2562, allocations: 8.312 kB / 432.7 MB, free: 4.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.425e-05/0.2562, allocations: 46.92 kB / 432.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.673e-06/0.2562, allocations: 0 / 432.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.004953/0.2612, allocations: 1.952 MB / 434.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.2612, allocations: 55.84 kB / 434.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.2615, allocations: 253.8 kB / 435 MB, free: 1.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.508e-05/0.2616, allocations: 45.7 kB / 435.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.2617, allocations: 168.9 kB / 435.3 MB, free: 1.695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.2618, allocations: 178.5 kB / 435.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.262, allocations: 110.2 kB / 435.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.2622, allocations: 342.8 kB / 435.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004889/0.2627, allocations: 233.2 kB / 436.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005299/0.2632, allocations: 304.1 kB / 436.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008065/0.264, allocations: 422.7 kB / 436.8 MB, free: 96 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.264, allocations: 0 / 436.8 MB, free: 96 kB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001602/0.2656, allocations: 0.7457 MB / 437.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2656, allocations: 8 kB / 437.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2656, allocations: 3.938 kB / 437.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.2668, allocations: 0.5524 MB / 438.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002773/0.267, allocations: 63.91 kB / 438.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003205/0.2702, allocations: 3.455 MB / 441.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004568/0.2707, allocations: 80.09 kB / 441.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.2707, allocations: 20 kB / 441.7 MB, free: 10.89 MB / 350.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.0002254/0.271, allocations: 161.8 kB / 441.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.06e-05/0.271, allocations: 35.75 kB / 441.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.2726, allocations: 0.717 MB / 442.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.2726, allocations: 4 kB / 442.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2726, allocations: 0 / 442.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.2726, allocations: 3.984 kB / 442.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.2748, allocations: 1.23 MB / 443.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2748, allocations: 0 / 443.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.2751, allocations: 55.97 kB / 443.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009825/0.2761, allocations: 0.5216 MB / 444.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.892e-05/0.2761, allocations: 23.97 kB / 444.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002984/0.2791, allocations: 3.427 MB / 447.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2791, allocations: 0 / 447.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.281, allocations: 1.021 MB / 448.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.2812, allocations: 87.67 kB / 449 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.485e-05/0.2813, allocations: 19.94 kB / 449 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004369/0.2817, allocations: 71.91 kB / 449.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/0.2819, allocations: 92.25 kB / 449.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-05/0.282, allocations: 23.98 kB / 449.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00018/0.2822, allocations: 185.1 kB / 449.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2822, allocations: 0 / 449.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004757/0.2826, allocations: 123.9 kB / 449.5 MB, free: 2.73 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.002358/0.285, allocations: 1.594 MB / 451.1 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001564/0.2866, allocations: 0.7819 MB / 451.9 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2866, allocations: 0 / 451.9 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009027/0.2875, allocations: 0.51 MB / 452.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/0.288, allocations: 57.88 kB / 452.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007327/0.2953, allocations: 4.359 MB / 456.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.2957, allocations: 0.8035 MB / 457.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.2959, allocations: 27.3 kB / 457.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/0.2961, allocations: 111.4 kB / 457.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of SimCode: time 9.31e-07/0.2961, allocations: 0 / 457.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05362/0.3497, allocations: 13.94 MB / 471.7 MB, free: 12.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.49, allocations: 7.438 kB / 471.7 MB, free: 12.49 MB / 382.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/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: 15.732684770133346]