Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.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.001734/0.001734, allocations: 115.9 kB / 17.74 MB, free: 5.355 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.001821/0.001821, allocations: 185.3 kB / 20.68 MB, free: 2.422 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.405/1.405, allocations: 222.9 MB / 246.4 MB, free: 4.188 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.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 51.92 kB / 357.5 MB, free: 8.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.1009, allocations: 49.43 MB / 406.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004394/0.1053, allocations: 3.039 MB / 410 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1072, allocations: 0.9193 MB / 410.9 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002115/0.1074, allocations: 8 kB / 410.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000249/0.1077, allocations: 67.31 kB / 411 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000282/0.108, allocations: 134.8 kB / 411.1 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.1086, allocations: 227.5 kB / 411.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007228/0.1093, allocations: 0.6317 MB / 411.9 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.1096, allocations: 128.5 kB / 412.1 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.11, allocations: 279 kB / 412.3 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004047/0.1104, allocations: 298.9 kB / 412.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.289e-05/0.1105, allocations: 52 kB / 412.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.1107, allocations: 99.95 kB / 412.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1109, allocations: 127.6 kB / 412.9 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002531/0.1111, allocations: 246.8 kB / 413.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007274/0.1119, allocations: 0.5953 MB / 413.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1119, allocations: 0 / 413.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1119, allocations: 0 / 413.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.1119, allocations: 0 / 413.7 MB, free: 0.5742 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001561/0.1135, allocations: 0.8025 MB / 414.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.1135, allocations: 8.031 kB / 414.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001445/0.1137, allocations: 87.66 kB / 414.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.1138, allocations: 52.61 kB / 414.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005057/0.1143, allocations: 343.4 kB / 415 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.1144, allocations: 29.38 kB / 415.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.379e-05/0.1144, allocations: 44.38 kB / 415.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009086/0.1154, allocations: 482.4 kB / 415.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.1154, allocations: 7.953 kB / 415.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.813e-05/0.1155, allocations: 19.94 kB / 415.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1155, allocations: 8 kB / 415.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009664/0.1164, allocations: 491.7 kB / 416.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.1186, allocations: 1.137 MB / 417.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008491/0.1194, allocations: 397 kB / 417.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005235/0.12, allocations: 258.1 kB / 417.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.12, allocations: 8.438 kB / 417.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.1201, allocations: 42.98 kB / 417.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.625e-06/0.1201, allocations: 0 / 417.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005362/0.1254, allocations: 2.343 MB / 420.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.1255, allocations: 59.97 kB / 420.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/0.1259, allocations: 283.3 kB / 420.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.753e-05/0.1259, allocations: 41.7 kB / 420.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1261, allocations: 189.6 kB / 420.8 MB, free: 9.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.1263, allocations: 210.2 kB / 421 MB, free: 8.953 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.1265, allocations: 110.3 kB / 421.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1267, allocations: 354.7 kB / 421.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004868/0.1272, allocations: 245.2 kB / 421.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005095/0.1277, allocations: 288.8 kB / 422 MB, free: 7.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000778/0.1285, allocations: 406.4 kB / 422.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1285, allocations: 4 kB / 422.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001738/0.1302, allocations: 0.7913 MB / 423.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1303, allocations: 4 kB / 423.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.1303, allocations: 0 / 423.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009709/0.1312, allocations: 0.4935 MB / 423.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003603/0.1316, allocations: 95.77 kB / 423.8 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.1332, allocations: 1.405 MB / 425.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005365/0.1337, allocations: 71.98 kB / 425.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.211e-05/0.1338, allocations: 31.88 kB / 425.3 MB, free: 4.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002558/0.1341, allocations: 170.4 kB / 425.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.918e-05/0.1342, allocations: 43.75 kB / 425.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.1343, allocations: 55.75 kB / 425.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.1343, allocations: 4 kB / 425.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.1343, allocations: 11.92 kB / 425.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1343, allocations: 0 / 425.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002907/0.1373, allocations: 1.452 MB / 427 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.1373, allocations: 4 kB / 427 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000365/0.1377, allocations: 83.89 kB / 427.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008364/0.1385, allocations: 477.5 kB / 427.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.312e-05/0.1386, allocations: 31.91 kB / 427.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.14, allocations: 1.366 MB / 429 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.14, allocations: 0 / 429 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2087/0.3487, allocations: 1.101 MB / 430.1 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002558/0.349, allocations: 173.5 kB / 430.2 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.664e-05/0.3491, allocations: 20.97 kB / 430.3 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003963/0.3495, allocations: 50.55 kB / 430.3 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/0.3498, allocations: 99.42 kB / 430.4 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.184e-05/0.3498, allocations: 25.22 kB / 430.4 MB, free: 22.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001717/0.35, allocations: 204.8 kB / 430.6 MB, free: 22.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.35, allocations: 0 / 430.6 MB, free: 22.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004553/0.3505, allocations: 133.2 kB / 430.8 MB, free: 22.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002115/0.3526, allocations: 1.674 MB / 432.4 MB, free: 21.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.3538, allocations: 0.5988 MB / 433 MB, free: 21.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3538, allocations: 0 / 433 MB, free: 21.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006296/0.3544, allocations: 335.8 kB / 433.4 MB, free: 21.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005646/0.355, allocations: 75.22 kB / 433.4 MB, free: 21.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008806/0.3638, allocations: 5.025 MB / 438.5 MB, free: 19.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.3641, allocations: 0.8236 MB / 439.3 MB, free: 19.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001826/0.3643, allocations: 35.39 kB / 439.3 MB, free: 19.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.3645, allocations: 141.2 kB / 439.5 MB, free: 19.13 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3645, allocations: 0 / 439.5 MB, free: 19.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04429/0.4088, allocations: 13.9 MB / 453.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/13.05, allocations: 1.344 kB / 453.3 MB, free: 14.6 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.400666860165074] Failed to read output from testmodel.py, exit status != 0: ['time', 'clutch.phi_rel', 'clutch.w_rel', 'inertia3.phi', 'inertia3.w', 'spring.phi_rel', 'spring.w_rel', 'brake.mode', 'brake.startBackward', 'brake.startForward', 'clutch.mode', 'clutch.startBackward', 'clutch.startForward'] 13.150719879893586 13.168973786 13.053572203 Calling exit ...