Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008429/0.0008429, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8981/0.8981, allocations: 177.1 MB / 199.4 MB, free: 5.934 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 152.6 kB / 256 MB, free: 13.34 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02247/0.02247, allocations: 6.664 MB / 319 MB, free: 26.77 MB / 266.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 0 / 445.4 MB, free: 37.65 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.252e-05/2.449e-05, allocations: 2.281 kB / 445.4 MB, free: 37.65 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.002244/0.002268, allocations: 2.003 MB / 447.4 MB, free: 35.63 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.003417, allocations: 1.068 MB / 448.5 MB, free: 34.55 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.852e-05/0.003516, allocations: 3.938 kB / 448.5 MB, free: 34.55 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003409/0.003857, allocations: 131.4 kB / 448.6 MB, free: 34.42 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003029/0.00416, allocations: 155.2 kB / 448.7 MB, free: 34.27 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.004328, allocations: 99.58 kB / 448.8 MB, free: 34.17 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001872/0.004515, allocations: 235.1 kB / 449.1 MB, free: 33.94 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.004637, allocations: 29.78 kB / 449.1 MB, free: 33.91 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.004749, allocations: 127.6 kB / 449.2 MB, free: 33.79 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.004868, allocations: 107.7 kB / 449.3 MB, free: 33.68 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.004891, allocations: 12 kB / 449.3 MB, free: 33.67 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.173e-05/0.004973, allocations: 51.92 kB / 449.4 MB, free: 33.62 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.532e-05/0.005028, allocations: 51.83 kB / 449.4 MB, free: 33.57 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.571e-05/0.005074, allocations: 55.78 kB / 449.5 MB, free: 33.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002118/0.005286, allocations: 231.2 kB / 449.7 MB, free: 33.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.005288, allocations: 0 / 449.7 MB, free: 33.29 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.005289, allocations: 0 / 449.7 MB, free: 33.29 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.005294, allocations: 3.938 kB / 449.7 MB, free: 33.29 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004859/0.00578, allocations: 461 kB / 450.2 MB, free: 32.8 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.00582, allocations: 8.031 kB / 450.2 MB, free: 32.8 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.317e-05/0.005853, allocations: 46.73 kB / 450.2 MB, free: 32.74 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.663e-05/0.005889, allocations: 24.8 kB / 450.2 MB, free: 32.72 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.006137, allocations: 190.2 kB / 450.4 MB, free: 32.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.006151, allocations: 4.609 kB / 450.4 MB, free: 32.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.374e-05/0.006175, allocations: 12.38 kB / 450.5 MB, free: 32.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.006375, allocations: 151.9 kB / 450.6 MB, free: 32.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.006389, allocations: 3.953 kB / 450.6 MB, free: 32.33 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.006402, allocations: 8 kB / 450.6 MB, free: 32.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.006407, allocations: 4 kB / 450.6 MB, free: 32.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.006511, allocations: 80.58 kB / 450.7 MB, free: 32.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005242/0.007036, allocations: 0.5301 MB / 451.2 MB, free: 31.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.007193, allocations: 102.6 kB / 451.3 MB, free: 31.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.631e-05/0.007239, allocations: 32.78 kB / 451.4 MB, free: 31.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.007257, allocations: 4 kB / 451.4 MB, free: 31.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/0.007394, allocations: 83.38 kB / 451.4 MB, free: 31.41 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.894e-06/0.007396, allocations: 0 / 451.4 MB, free: 31.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002489/0.007645, allocations: 161.4 kB / 451.6 MB, free: 31.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.47e-05/0.00767, allocations: 51.41 kB / 451.6 MB, free: 31.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.007822, allocations: 285.8 kB / 451.9 MB, free: 30.89 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-06/0.007831, allocations: 25.7 kB / 452 MB, free: 30.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.441e-05/0.007885, allocations: 152.1 kB / 452.1 MB, free: 30.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.007907, allocations: 35.75 kB / 452.1 MB, free: 30.67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.007944, allocations: 37.64 kB / 452.2 MB, free: 30.63 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.834e-05/0.007983, allocations: 327.2 kB / 452.5 MB, free: 30.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.635e-05/0.008029, allocations: 31.98 kB / 452.5 MB, free: 30.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.145e-05/0.008081, allocations: 74.94 kB / 452.6 MB, free: 30.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.756e-05/0.008178, allocations: 104.2 kB / 452.7 MB, free: 30.07 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.00818, allocations: 3.938 kB / 452.7 MB, free: 30.06 MB / 330.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001406/0.008321, allocations: 161.3 kB / 452.9 MB, free: 29.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.008334, allocations: 10.94 kB / 452.9 MB, free: 29.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.00834, allocations: 4 kB / 452.9 MB, free: 29.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.008353, allocations: 0 / 452.9 MB, free: 29.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.008454, allocations: 27.98 kB / 452.9 MB, free: 29.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.008461, allocations: 7.922 kB / 452.9 MB, free: 29.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.077e-05/0.008502, allocations: 8 kB / 452.9 MB, free: 29.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.008518, allocations: 12 kB / 452.9 MB, free: 29.83 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.959e-05/0.008588, allocations: 140.2 kB / 453.1 MB, free: 29.69 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.008603, allocations: 27.78 kB / 453.1 MB, free: 29.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/0.008776, allocations: 155.3 kB / 453.2 MB, free: 29.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.008778, allocations: 0 / 453.2 MB, free: 29.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.008783, allocations: 0 / 453.2 MB, free: 29.51 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.008787, allocations: 0 / 453.2 MB, free: 29.51 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.008893, allocations: 208.6 kB / 453.4 MB, free: 29.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.008894, allocations: 0 / 453.4 MB, free: 29.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.627e-05/0.008961, allocations: 23.98 kB / 453.5 MB, free: 29.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.008963, allocations: 0 / 453.5 MB, free: 29.24 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.008971, allocations: 0 / 453.5 MB, free: 29.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.008972, allocations: 0 / 453.5 MB, free: 29.24 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.008974, allocations: 4 kB / 453.5 MB, free: 29.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001929/0.009167, allocations: 204.8 kB / 453.7 MB, free: 29.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.655e-05/0.009183, allocations: 19.83 kB / 453.7 MB, free: 29 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.009201, allocations: 11.98 kB / 453.7 MB, free: 28.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.728e-05/0.009228, allocations: 0 / 453.7 MB, free: 28.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.044e-05/0.009259, allocations: 7.984 kB / 453.7 MB, free: 28.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.009273, allocations: 4 kB / 453.7 MB, free: 28.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.076e-05/0.009364, allocations: 213.2 kB / 453.9 MB, free: 28.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009364, allocations: 0 / 453.9 MB, free: 28.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001692/0.009533, allocations: 39.94 kB / 454 MB, free: 28.73 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009041/0.01044, allocations: 1.082 MB / 455 MB, free: 27.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001494/0.01059, allocations: 83.84 kB / 455.1 MB, free: 27.72 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.01059, allocations: 0 / 455.1 MB, free: 27.72 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.957e-05/0.01064, allocations: 35.98 kB / 455.2 MB, free: 27.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.01085, allocations: 36.47 kB / 455.2 MB, free: 27.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.01211, allocations: 2.101 MB / 457.3 MB, free: 25.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.956e-05/0.01217, allocations: 128.1 kB / 457.4 MB, free: 25.29 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.325e-05/0.01223, allocations: 21.48 kB / 457.4 MB, free: 25.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.976e-05/0.01229, allocations: 68.47 kB / 457.5 MB, free: 25.21 MB / 330.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01229, allocations: 0 / 457.5 MB, free: 25.21 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.03231, allocations: 5.319 MB / 462.8 MB, free: 19.95 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.951/6.983, allocations: 8 kB / 462.8 MB, free: 19.94 MB / 330.7 MB " [Timeout remaining time 653] (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.929340163245797] Failed to read output from testmodel.py, exit status != 0: 7.079952166415751 7.087714814 7.080403178 Calling exit ...