Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.00176/0.00176, allocations: 119.8 kB / 17.74 MB, free: 5.301 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.001839/0.001839, allocations: 185.3 kB / 20.67 MB, free: 2.375 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.421/1.421, allocations: 222.9 MB / 246.4 MB, free: 4.199 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.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 47.92 kB / 357.5 MB, free: 8.816 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1101, allocations: 49.43 MB / 406.9 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.004193/0.1143, allocations: 2.353 MB / 409.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.1157, allocations: 0.5726 MB / 409.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.1159, allocations: 4 kB / 409.8 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.1161, allocations: 35.59 kB / 409.9 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.1164, allocations: 75.39 kB / 410 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.1167, allocations: 55.86 kB / 410 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003922/0.1171, allocations: 262.8 kB / 410.3 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.1173, allocations: 88.55 kB / 410.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002013/0.1175, allocations: 95.59 kB / 410.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.1177, allocations: 107.5 kB / 410.6 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.768e-05/0.1178, allocations: 20 kB / 410.6 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.875e-05/0.1178, allocations: 24 kB / 410.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.973e-05/0.1179, allocations: 43.83 kB / 410.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.1181, allocations: 111.5 kB / 410.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003418/0.1184, allocations: 250.9 kB / 411 MB, free: 3.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1184, allocations: 3.938 kB / 411 MB, free: 3.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1184, allocations: 0 / 411 MB, free: 3.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.076e-06/0.1184, allocations: 0 / 411 MB, free: 3.242 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007982/0.1192, allocations: 0.5144 MB / 411.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.1193, allocations: 12.03 kB / 411.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.612e-05/0.1194, allocations: 54.72 kB / 411.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.102e-05/0.1194, allocations: 32.75 kB / 411.6 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.1198, allocations: 233.4 kB / 411.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.1198, allocations: 16.81 kB / 411.9 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.938e-05/0.1199, allocations: 28.36 kB / 411.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003725/0.1203, allocations: 209.9 kB / 412.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.1203, allocations: 11.94 kB / 412.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.1203, allocations: 8 kB / 412.1 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.1203, allocations: 4 kB / 412.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002699/0.1206, allocations: 125.7 kB / 412.2 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.1218, allocations: 0.6978 MB / 412.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.1221, allocations: 155.9 kB / 413.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.1222, allocations: 72.83 kB / 413.2 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.1223, allocations: 7.984 kB / 413.2 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.1223, allocations: 30.56 kB / 413.2 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 2.044e-06/0.1223, allocations: 0 / 413.2 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00179/0.1241, allocations: 0.8923 MB / 414.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.1242, allocations: 59.41 kB / 414.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.1244, allocations: 171.2 kB / 414.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.1244, allocations: 33.7 kB / 414.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1245, allocations: 144.4 kB / 414.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.833e-05/0.1246, allocations: 95.2 kB / 414.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.041e-05/0.1247, allocations: 45.7 kB / 414.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1248, allocations: 326.8 kB / 414.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.125, allocations: 59.97 kB / 415 MB, free: 14.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/0.1251, allocations: 100.2 kB / 415.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.1254, allocations: 172.8 kB / 415.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.1254, allocations: 0 / 415.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004567/0.1259, allocations: 254.1 kB / 415.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.1259, allocations: 4 kB / 415.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1259, allocations: 4 kB / 415.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.1261, allocations: 36.77 kB / 415.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.1263, allocations: 51.97 kB / 415.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/0.1278, allocations: 1.481 MB / 417.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.1279, allocations: 12.06 kB / 417.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.1279, allocations: 8 kB / 417.1 MB, free: 12.62 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.1281, allocations: 133.8 kB / 417.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.1281, allocations: 23.94 kB / 417.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.775e-05/0.1282, allocations: 37.78 kB / 417.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1282, allocations: 4 kB / 417.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1282, allocations: 0 / 417.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1282, allocations: 0 / 417.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009891/0.1292, allocations: 0.6534 MB / 418 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.1292, allocations: 0 / 418 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.1294, allocations: 47.91 kB / 418 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001301/0.1296, allocations: 36.89 kB / 418 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.1296, allocations: 4 kB / 418 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.1309, allocations: 1.492 MB / 419.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.131, allocations: 0 / 419.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006074/0.1316, allocations: 399.2 kB / 419.9 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.445e-05/0.1317, allocations: 101 kB / 420 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.1317, allocations: 4 kB / 420 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1318, allocations: 12.03 kB / 420 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.4e-05/0.1319, allocations: 19.86 kB / 420.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.1319, allocations: 8.234 kB / 420.1 MB, free: 9.391 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001071/0.132, allocations: 132.8 kB / 420.2 MB, free: 9.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.132, allocations: 0 / 420.2 MB, free: 9.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003363/0.1324, allocations: 60 kB / 420.3 MB, free: 9.203 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009864/0.1333, allocations: 0.9393 MB / 421.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005966/0.134, allocations: 286.4 kB / 421.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.134, allocations: 0 / 421.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003205/0.1343, allocations: 211.1 kB / 421.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.1348, allocations: 54.23 kB / 421.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003503/0.1383, allocations: 2.536 MB / 424.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.1388, allocations: 0.752 MB / 425 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.072e-05/0.1389, allocations: 17.95 kB / 425 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.139, allocations: 67.41 kB / 425.1 MB, free: 4.145 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.139, allocations: 4 kB / 425.1 MB, free: 4.141 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2311/0.3701, allocations: 4.725 MB / 429.8 MB, free: 22.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.89, allocations: 6.453 kB / 429.8 MB, free: 22.15 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.322910486953333] Failed to read output from testmodel.py, exit status != 0: ['time', 'damper.phi_rel', 'damper.w_rel', 'inertia3.phi', 'inertia3.w'] 10.96897393092513 10.980025286 10.859420227 Calling exit ...