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.001392/0.001398, allocations: 115.3 kB / 17.74 MB, free: 5.34 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.002011/0.002011, allocations: 182.9 kB / 20.68 MB, free: 2.41 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.438/1.438, allocations: 222.9 MB / 246.4 MB, free: 4.215 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.00163/0.00163, allocations: 55.91 kB / 357.5 MB, free: 8.863 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.09811, allocations: 49.44 MB / 406.9 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004189/0.1023, allocations: 2.816 MB / 409.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.1041, allocations: 0.8882 MB / 410.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.1042, allocations: 7.938 kB / 410.6 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.1046, allocations: 55.45 kB / 410.7 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002381/0.1048, allocations: 107.1 kB / 410.8 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004811/0.1053, allocations: 215.6 kB / 411 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000579/0.1059, allocations: 0.5657 MB / 411.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.1061, allocations: 114.7 kB / 411.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002972/0.1064, allocations: 247.2 kB / 411.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003441/0.1068, allocations: 271 kB / 412.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.83e-05/0.1069, allocations: 44 kB / 412.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002065/0.1071, allocations: 95.95 kB / 412.3 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001436/0.1072, allocations: 119.6 kB / 412.4 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002333/0.1075, allocations: 215 kB / 412.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006416/0.1081, allocations: 0.5409 MB / 413.2 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1081, allocations: 0 / 413.2 MB, free: 1.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1081, allocations: 4 kB / 413.2 MB, free: 1.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.1081, allocations: 0 / 413.2 MB, free: 1.082 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.00146/0.1096, allocations: 0.7443 MB / 413.9 MB, free: 292 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.1097, allocations: 12.03 kB / 414 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001404/0.1098, allocations: 75.66 kB / 414 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.215e-05/0.1099, allocations: 44.66 kB / 414.1 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004687/0.1104, allocations: 310.7 kB / 414.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/0.1104, allocations: 29.38 kB / 414.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-05/0.1105, allocations: 44.3 kB / 414.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009087/0.1114, allocations: 446.5 kB / 414.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.1115, allocations: 4 kB / 414.9 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.824e-05/0.1115, allocations: 15.98 kB / 414.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1115, allocations: 8 kB / 414.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.1126, allocations: 455.7 kB / 415.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002404/0.115, allocations: 1.285 MB / 416.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008564/0.1159, allocations: 373.7 kB / 417 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004885/0.1164, allocations: 249.5 kB / 417.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.373e-05/0.1164, allocations: 8.359 kB / 417.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.1165, allocations: 34.94 kB / 417.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.164e-06/0.1165, allocations: 0 / 417.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005627/0.1221, allocations: 2.27 MB / 419.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.1222, allocations: 63.84 kB / 419.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.1225, allocations: 254.6 kB / 419.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.24e-05/0.1226, allocations: 37.7 kB / 419.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.1227, allocations: 172.9 kB / 420.1 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.1229, allocations: 170.6 kB / 420.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.1231, allocations: 106.2 kB / 420.3 MB, free: 9.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1233, allocations: 338.8 kB / 420.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005097/0.1238, allocations: 237 kB / 420.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005528/0.1243, allocations: 299.2 kB / 421.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009236/0.1253, allocations: 419.7 kB / 421.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1253, allocations: 0 / 421.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001639/0.1269, allocations: 0.7627 MB / 422.4 MB, free: 7.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.127, allocations: 4 kB / 422.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.127, allocations: 0 / 422.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.1281, allocations: 0.5552 MB / 422.9 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.1285, allocations: 75.89 kB / 423 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003415/0.1319, allocations: 3.662 MB / 426.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005051/0.1324, allocations: 76.03 kB / 426.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.725e-05/0.1325, allocations: 16 kB / 426.8 MB, free: 2.766 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.0002386/0.1327, allocations: 162.4 kB / 426.9 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.696e-05/0.1328, allocations: 39.75 kB / 427 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001649/0.1345, allocations: 0.7286 MB / 427.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1345, allocations: 4 kB / 427.7 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1345, allocations: 0 / 427.7 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.1345, allocations: 3.984 kB / 427.7 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.1368, allocations: 1.266 MB / 429 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1368, allocations: 0 / 429 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.1371, allocations: 63.84 kB / 429 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.189/0.3261, allocations: 0.5236 MB / 429.5 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.3263, allocations: 18.23 kB / 429.6 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.3282, allocations: 3.627 MB / 433.2 MB, free: 19.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3282, allocations: 0.875 kB / 433.2 MB, free: 19.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.3299, allocations: 1.026 MB / 434.2 MB, free: 19.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001589/0.33, allocations: 162.1 kB / 434.4 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.199e-05/0.3301, allocations: 21.16 kB / 434.4 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000453/0.3306, allocations: 67.83 kB / 434.5 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.3308, allocations: 89.42 kB / 434.5 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.3308, allocations: 22.92 kB / 434.6 MB, free: 19.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001386/0.331, allocations: 179.7 kB / 434.7 MB, free: 19.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.331, allocations: 1.094 kB / 434.7 MB, free: 19.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004562/0.3314, allocations: 123.9 kB / 434.9 MB, free: 19.32 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.001997/0.3334, allocations: 1.611 MB / 436.5 MB, free: 18.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.335, allocations: 0.8065 MB / 437.3 MB, free: 18.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.335, allocations: 0.5938 kB / 437.3 MB, free: 18.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008678/0.3359, allocations: 0.5358 MB / 437.8 MB, free: 18.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.3364, allocations: 65.03 kB / 437.9 MB, free: 18.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006455/0.3429, allocations: 4.372 MB / 442.3 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.3431, allocations: 0.8068 MB / 443.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.3433, allocations: 32.08 kB / 443.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.3435, allocations: 109.9 kB / 443.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3435, allocations: 2.516 kB / 443.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04728/0.3907, allocations: 13.39 MB / 456.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.3, allocations: 3.938 kB / 456.6 MB, free: 11.43 MB / 350.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] [Calling os._exit(0), Time elapsed: 15.679845646955073] Failed to read output from testmodel.py, exit status != 0: ['time', 'clutch.phi_rel', 'clutch.w_rel', 'engine.phi', 'engine.w', 'load.phi', 'load.w', 'brake.mode', 'brake.startBackward', 'brake.startForward', 'clutch.mode', 'clutch.startBackward', 'clutch.startForward'] 13.393138155108318 13.402236462 13.292346124 Calling exit ...