Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001312/0.001312, allocations: 120.8 kB / 17.74 MB, free: 5.332 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.001251/0.001251, allocations: 186.9 kB / 20.68 MB, free: 2.402 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.408/1.408, allocations: 222.9 MB / 246.4 MB, free: 4.184 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 47.91 kB / 357.5 MB, free: 8.816 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1024, allocations: 49.44 MB / 406.9 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00387/0.1063, allocations: 2.213 MB / 409.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.1077, allocations: 0.6816 MB / 409.8 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.108, allocations: 7.938 kB / 409.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.1082, allocations: 27.72 kB / 409.8 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.1084, allocations: 75.41 kB / 409.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003872/0.1088, allocations: 99.81 kB / 410 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003889/0.1092, allocations: 263.4 kB / 410.3 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.1094, allocations: 64.34 kB / 410.3 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/0.1096, allocations: 103.6 kB / 410.4 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.1099, allocations: 119.5 kB / 410.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.67e-05/0.1099, allocations: 24 kB / 410.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.1101, allocations: 67.89 kB / 410.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.253e-05/0.1102, allocations: 55.81 kB / 410.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.1104, allocations: 107.5 kB / 410.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004218/0.1108, allocations: 279.1 kB / 411.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1108, allocations: 0 / 411.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1108, allocations: 0 / 411.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.9e-05/0.1108, allocations: 7.984 kB / 411.1 MB, free: 3.141 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009553/0.1118, allocations: 0.5144 MB / 411.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1118, allocations: 12.03 kB / 411.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.559e-05/0.1119, allocations: 54.72 kB / 411.7 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.112, allocations: 28.73 kB / 411.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.1124, allocations: 244.6 kB / 411.9 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.1124, allocations: 16.81 kB / 411.9 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.045e-05/0.1125, allocations: 20.38 kB / 412 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00045/0.1129, allocations: 225.8 kB / 412.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.113, allocations: 4 kB / 412.2 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.113, allocations: 4 kB / 412.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.113, allocations: 8 kB / 412.2 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003514/0.1134, allocations: 165 kB / 412.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.1147, allocations: 0.776 MB / 413.1 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.1151, allocations: 134.5 kB / 413.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.1152, allocations: 69.08 kB / 413.3 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.1153, allocations: 8 kB / 413.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.1153, allocations: 34.47 kB / 413.4 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.1153, allocations: 0 / 413.4 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.002105/0.1174, allocations: 0.9916 MB / 414.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.1175, allocations: 59.39 kB / 414.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.1177, allocations: 206.9 kB / 414.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1177, allocations: 33.69 kB / 414.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.1179, allocations: 140.4 kB / 414.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.916e-05/0.1179, allocations: 83.22 kB / 414.9 MB, free: 15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.345e-05/0.118, allocations: 49.7 kB / 414.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1182, allocations: 334.8 kB / 415.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.1184, allocations: 83.95 kB / 415.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.1186, allocations: 120.1 kB / 415.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.1189, allocations: 166.4 kB / 415.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.119, allocations: 0 / 415.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005377/0.1195, allocations: 288.6 kB / 415.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1195, allocations: 8 kB / 415.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1196, allocations: 3.984 kB / 415.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002542/0.1198, allocations: 72.77 kB / 416 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.12, allocations: 35.97 kB / 416 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006051/0.1206, allocations: 0.6226 MB / 416.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.1208, allocations: 23.97 kB / 416.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.1208, allocations: 12 kB / 416.7 MB, free: 13.13 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.121, allocations: 132 kB / 416.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.737e-05/0.121, allocations: 19.91 kB / 416.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.895e-05/0.1211, allocations: 37.86 kB / 416.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1211, allocations: 0 / 416.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1211, allocations: 0 / 416.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1212, allocations: 0 / 416.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009409/0.1221, allocations: 0.5906 MB / 417.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1221, allocations: 4 kB / 417.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00016/0.1223, allocations: 35.98 kB / 417.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002024/0.1225, allocations: 68.89 kB / 417.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.1225, allocations: 3.984 kB / 417.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005427/0.1231, allocations: 0.6186 MB / 418.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1231, allocations: 8 kB / 418.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006653/0.1238, allocations: 427.6 kB / 418.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1239, allocations: 101.2 kB / 418.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.116e-05/0.1239, allocations: 15.98 kB / 418.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.1241, allocations: 23.97 kB / 418.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.381e-05/0.1242, allocations: 23.97 kB / 418.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.1242, allocations: 7.984 kB / 418.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.1244, allocations: 152.4 kB / 418.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1244, allocations: 0 / 418.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003424/0.1247, allocations: 64 kB / 419 MB, free: 10.67 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001096/0.1258, allocations: 0.9723 MB / 420 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005442/0.1264, allocations: 210.2 kB / 420.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1264, allocations: 0 / 420.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.1267, allocations: 106.5 kB / 420.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/0.127, allocations: 23.98 kB / 420.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003877/0.1309, allocations: 2.652 MB / 422.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.1314, allocations: 0.7402 MB / 423.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.1315, allocations: 21.89 kB / 423.7 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.1316, allocations: 67.41 kB / 423.8 MB, free: 5.707 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1316, allocations: 0 / 423.8 MB, free: 5.707 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0328/0.1644, allocations: 5.524 MB / 429.3 MB, free: 356 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/11.85, allocations: 9 kB / 429.3 MB, free: 348 kB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.42580436100252] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.22178127989173 12.23537322 12.120812134 Calling exit ...