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.001186/0.001186, allocations: 125 kB / 17.79 MB, free: 5.121 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.001189/0.001189, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.344/1.344, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.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.001489/0.001489, allocations: 51.92 kB / 365.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.09447, allocations: 52.14 MB / 417.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003948/0.09842, allocations: 2.826 MB / 420.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.09995, allocations: 0.8921 MB / 421.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.1001, allocations: 7.938 kB / 421.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002/0.1003, allocations: 67.38 kB / 421.6 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002302/0.1005, allocations: 107 kB / 421.7 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000443/0.101, allocations: 211.6 kB / 421.9 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005843/0.1015, allocations: 0.5657 MB / 422.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.1017, allocations: 78.72 kB / 422.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002876/0.102, allocations: 259.2 kB / 422.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003375/0.1023, allocations: 279 kB / 423 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.764e-05/0.1024, allocations: 44 kB / 423.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001626/0.1026, allocations: 95.88 kB / 423.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.1027, allocations: 111.7 kB / 423.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.1029, allocations: 218.9 kB / 423.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006048/0.1035, allocations: 0.537 MB / 424 MB, free: 6.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1035, allocations: 0 / 424 MB, free: 6.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1035, allocations: 0 / 424 MB, free: 6.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1035, allocations: 0 / 424 MB, free: 6.383 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00138/0.1049, allocations: 0.7504 MB / 424.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.1049, allocations: 12.03 kB / 424.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.1051, allocations: 83.64 kB / 424.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.031e-05/0.1051, allocations: 48.66 kB / 424.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.1056, allocations: 310.7 kB / 425.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.1056, allocations: 21.38 kB / 425.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.506e-05/0.1057, allocations: 36.38 kB / 425.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008321/0.1065, allocations: 454.4 kB / 425.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.1066, allocations: 8 kB / 425.7 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.1066, allocations: 12 kB / 425.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1066, allocations: 12 kB / 425.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009485/0.1076, allocations: 463.6 kB / 426.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.1098, allocations: 1.278 MB / 427.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007716/0.1106, allocations: 340.5 kB / 427.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004746/0.1111, allocations: 233.5 kB / 428.1 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.1111, allocations: 4.375 kB / 428.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.1112, allocations: 38.92 kB / 428.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.463e-06/0.1112, allocations: 0 / 428.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005051/0.1162, allocations: 2.262 MB / 430.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.1163, allocations: 55.84 kB / 430.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.1165, allocations: 254.6 kB / 430.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.1166, allocations: 45.64 kB / 430.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.1167, allocations: 172.9 kB / 430.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.1168, allocations: 174.6 kB / 431 MB, free: 15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.117, allocations: 102.2 kB / 431.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1172, allocations: 342.8 kB / 431.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/0.1176, allocations: 233 kB / 431.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005143/0.1182, allocations: 299.2 kB / 432 MB, free: 14.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008/0.119, allocations: 423.7 kB / 432.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.119, allocations: 4 kB / 432.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001532/0.1205, allocations: 0.7433 MB / 433.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.1205, allocations: 4 kB / 433.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1205, allocations: 4 kB / 433.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.1216, allocations: 0.5568 MB / 433.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.1219, allocations: 79.89 kB / 433.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003165/0.125, allocations: 3.641 MB / 437.4 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004422/0.1255, allocations: 71.94 kB / 437.5 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.858e-05/0.1255, allocations: 24.08 kB / 437.5 MB, free: 8.125 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 (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.0002028/0.1257, allocations: 167 kB / 437.7 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.018e-05/0.1258, allocations: 35.75 kB / 437.7 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.1273, allocations: 0.7207 MB / 438.5 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1273, allocations: 8 kB / 438.5 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.1273, allocations: 3.938 kB / 438.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1273, allocations: 0 / 438.5 MB, free: 7.176 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.1296, allocations: 1.254 MB / 439.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1296, allocations: 3.984 kB / 439.7 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002628/0.1298, allocations: 63.91 kB / 439.8 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009769/0.1308, allocations: 0.5241 MB / 440.3 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.305e-05/0.1308, allocations: 19.97 kB / 440.3 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003064/0.1339, allocations: 3.622 MB / 444 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1339, allocations: 0 / 444 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.1358, allocations: 1.021 MB / 445 MB, free: 268 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.1361, allocations: 160.8 kB / 445.1 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.568e-05/0.1361, allocations: 23.94 kB / 445.2 MB, free: 64 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1683/0.3044, allocations: 67.77 kB / 445.2 MB, free: 30.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/0.3048, allocations: 86.19 kB / 445.3 MB, free: 30.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/0.3048, allocations: 22.34 kB / 445.3 MB, free: 30.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001954/0.305, allocations: 179.2 kB / 445.5 MB, free: 30.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.305, allocations: 0 / 445.5 MB, free: 30.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006146/0.3056, allocations: 127.6 kB / 445.6 MB, free: 30.84 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001913/0.3075, allocations: 1.597 MB / 447.2 MB, free: 30.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.3088, allocations: 0.7723 MB / 448 MB, free: 29.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3088, allocations: 2.062 kB / 448 MB, free: 29.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007094/0.3095, allocations: 0.5154 MB / 448.5 MB, free: 29.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.31, allocations: 63.81 kB / 448.6 MB, free: 29.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006219/0.3162, allocations: 4.343 MB / 452.9 MB, free: 28.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.3165, allocations: 0.8065 MB / 453.7 MB, free: 27.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.3166, allocations: 32.95 kB / 453.8 MB, free: 27.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.3168, allocations: 114.7 kB / 453.9 MB, free: 27.38 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3168, allocations: 0 / 453.9 MB, free: 27.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1498/0.4666, allocations: 13.46 MB / 467.3 MB, free: 23.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.36, allocations: 7.641 kB / 467.3 MB, free: 23.5 MB / 366.1 MB " [Timeout remaining time 647] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.75709190312773]