Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001508/0.001508, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 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.002128/0.002128, allocations: 214.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.395/1.395, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 59.91 kB / 377.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2242, allocations: 53.36 MB / 431.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004419/0.2286, allocations: 2.985 MB / 434.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001858/0.2305, allocations: 1.064 MB / 435.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.2307, allocations: 11.94 kB / 435.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002753/0.2309, allocations: 79.3 kB / 435.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003467/0.2313, allocations: 158.9 kB / 435.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.2316, allocations: 187.7 kB / 435.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006391/0.2323, allocations: 0.5969 MB / 436.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.2325, allocations: 88.66 kB / 436.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.2328, allocations: 263.3 kB / 436.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004011/0.2332, allocations: 295 kB / 436.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.877e-05/0.2333, allocations: 48 kB / 436.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001922/0.2335, allocations: 108 kB / 437 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000161/0.2336, allocations: 131.6 kB / 437.1 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002301/0.2339, allocations: 230.9 kB / 437.3 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007209/0.2346, allocations: 0.5915 MB / 437.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2346, allocations: 0 / 437.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2346, allocations: 0 / 437.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.2346, allocations: 0 / 437.9 MB, free: 15.99 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.001428/0.236, allocations: 0.7154 MB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.2361, allocations: 8.031 kB / 438.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001369/0.2362, allocations: 87.64 kB / 438.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.2363, allocations: 48.61 kB / 438.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004999/0.2368, allocations: 264.9 kB / 439 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.084e-05/0.2368, allocations: 33.38 kB / 439.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-05/0.2369, allocations: 36.38 kB / 439.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008693/0.2378, allocations: 450.4 kB / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.2378, allocations: 0 / 439.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.221e-05/0.2378, allocations: 16 kB / 439.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2378, allocations: 8 kB / 439.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009841/0.2388, allocations: 455.7 kB / 440 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.2413, allocations: 1.233 MB / 441.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009118/0.2422, allocations: 385 kB / 441.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.2426, allocations: 225.3 kB / 441.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.453e-05/0.2427, allocations: 12.42 kB / 441.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.2427, allocations: 43 kB / 441.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.793e-06/0.2427, allocations: 0 / 441.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005257/0.248, allocations: 1.955 MB / 443.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.248, allocations: 55.84 kB / 443.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.2483, allocations: 269.8 kB / 444.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.101e-05/0.2484, allocations: 41.69 kB / 444.2 MB, free: 9.469 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.2485, allocations: 184.9 kB / 444.4 MB, free: 9.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/0.2487, allocations: 190.5 kB / 444.6 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.2489, allocations: 98.28 kB / 444.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.249, allocations: 346.8 kB / 445 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004816/0.2495, allocations: 217.2 kB / 445.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005519/0.2501, allocations: 292.1 kB / 445.5 MB, free: 8.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008078/0.2509, allocations: 402.8 kB / 445.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2509, allocations: 0 / 445.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001605/0.2525, allocations: 0.7181 MB / 446.6 MB, free: 6.984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.2525, allocations: 8.125 kB / 446.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2525, allocations: 4 kB / 446.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.2536, allocations: 426.3 kB / 447.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002886/0.2539, allocations: 71.91 kB / 447.1 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/0.2572, allocations: 3.437 MB / 450.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005238/0.2577, allocations: 76.03 kB / 450.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.368e-05/0.2578, allocations: 31.92 kB / 450.7 MB, free: 2.68 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 (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.0002604/0.258, allocations: 164.5 kB / 450.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.2581, allocations: 47.69 kB / 450.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001638/0.2598, allocations: 0.7029 MB / 451.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.2598, allocations: 4 kB / 451.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.2598, allocations: 4 kB / 451.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2598, allocations: 7.922 kB / 451.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002365/0.2621, allocations: 1.244 MB / 452.8 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2621, allocations: 0 / 452.8 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.2624, allocations: 63.89 kB / 452.9 MB, free: 380 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00096/0.2634, allocations: 402 kB / 453.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.074e-05/0.2634, allocations: 23.91 kB / 453.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00311/0.2665, allocations: 3.411 MB / 456.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2665, allocations: 0 / 456.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.2686, allocations: 1.015 MB / 457.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002254/0.2688, allocations: 87.72 kB / 457.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.213e-05/0.2689, allocations: 19.94 kB / 457.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004524/0.2693, allocations: 71.91 kB / 457.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.2695, allocations: 100.2 kB / 458 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.587e-05/0.2696, allocations: 19.98 kB / 458 MB, free: 10.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002045/0.2698, allocations: 197.2 kB / 458.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2698, allocations: 0 / 458.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005043/0.2703, allocations: 119.9 kB / 458.3 MB, free: 10.64 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.003554/0.2739, allocations: 1.823 MB / 460.2 MB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.2755, allocations: 0.7599 MB / 460.9 MB, free: 8.125 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2755, allocations: 4 kB / 460.9 MB, free: 8.121 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009182/0.2764, allocations: 0.5103 MB / 461.4 MB, free: 7.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005605/0.277, allocations: 76.28 kB / 461.5 MB, free: 7.516 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007242/0.2842, allocations: 4.302 MB / 465.8 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.2846, allocations: 0.8124 MB / 466.6 MB, free: 2.242 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001464/0.2848, allocations: 39.28 kB / 466.7 MB, free: 2.203 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.285, allocations: 123.4 kB / 466.8 MB, free: 2.082 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.285, allocations: 0 / 466.8 MB, free: 2.082 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05455/0.3395, allocations: 14.34 MB / 481.1 MB, free: 3.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/13.8, allocations: 10.52 kB / 481.1 MB, free: 3.855 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 16.208700170973316]