Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.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.001262/0.001262, allocations: 112 kB / 17.6 MB, free: 4.699 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.001337/0.001337, allocations: 186 kB / 20.78 MB, free: 1.539 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.42/1.42, allocations: 225.6 MB / 249.4 MB, free: 3.145 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo): time 0.04156/0.04156, allocations: 8.541 MB / 313.1 MB, free: 1.879 MB / 238.1 MB " [Timeout remaining time 180] Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0/package.mo) 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(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.91 kB / 436 MB, free: 10.2 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2436, allocations: 54.19 MB / 490.2 MB, free: 25.94 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.002814/0.2464, allocations: 1.885 MB / 492.1 MB, free: 24.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.2481, allocations: 1.547 MB / 493.7 MB, free: 23.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.94e-05/0.2482, allocations: 6.188 kB / 493.7 MB, free: 23.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002774/0.2485, allocations: 101.3 kB / 493.8 MB, free: 23.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.2488, allocations: 121.5 kB / 493.9 MB, free: 23.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003856/0.2492, allocations: 180.3 kB / 494.1 MB, free: 23.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003114/0.2495, allocations: 263.9 kB / 494.3 MB, free: 23.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.932e-05/0.2496, allocations: 28.78 kB / 494.4 MB, free: 23.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.2497, allocations: 103.8 kB / 494.5 MB, free: 23.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.25, allocations: 141.7 kB / 494.6 MB, free: 23.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.25, allocations: 16 kB / 494.6 MB, free: 23.13 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.2501, allocations: 77.66 kB / 494.7 MB, free: 23.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.452e-05/0.2502, allocations: 46.67 kB / 494.7 MB, free: 23.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.9e-05/0.2503, allocations: 103.5 kB / 494.8 MB, free: 23.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003286/0.2506, allocations: 280.8 kB / 495.1 MB, free: 22.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2506, allocations: 0.7031 kB / 495.1 MB, free: 22.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2506, allocations: 0 / 495.1 MB, free: 22.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.2506, allocations: 1.438 kB / 495.1 MB, free: 22.9 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006297/0.2512, allocations: 0.6139 MB / 495.7 MB, free: 22.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.2513, allocations: 13.95 kB / 495.7 MB, free: 22.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.888e-05/0.2513, allocations: 50.48 kB / 495.8 MB, free: 22.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/0.2514, allocations: 27.7 kB / 495.8 MB, free: 22.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002587/0.2516, allocations: 276.8 kB / 496.1 MB, free: 22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.2516, allocations: 5.375 kB / 496.1 MB, free: 22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.2517, allocations: 17.78 kB / 496.1 MB, free: 21.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.252, allocations: 156.7 kB / 496.3 MB, free: 21.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.252, allocations: 0 / 496.3 MB, free: 21.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.252, allocations: 4 kB / 496.3 MB, free: 21.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.252, allocations: 5.875 kB / 496.3 MB, free: 21.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002673/0.2523, allocations: 94.86 kB / 496.4 MB, free: 21.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008263/0.2531, allocations: 0.505 MB / 496.9 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.2533, allocations: 94.27 kB / 497 MB, free: 21.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.2534, allocations: 57.31 kB / 497 MB, free: 21.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.2535, allocations: 3.875 kB / 497 MB, free: 21.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.2535, allocations: 36.97 kB / 497.1 MB, free: 21.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.2535, allocations: 0 / 497.1 MB, free: 21.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006176/0.2541, allocations: 304.4 kB / 497.4 MB, free: 21.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.2541, allocations: 139.5 kB / 497.5 MB, free: 21.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003267/0.2545, allocations: 365.4 kB / 497.8 MB, free: 20.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.2545, allocations: 29.83 kB / 497.9 MB, free: 20.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.735e-05/0.2545, allocations: 160.3 kB / 498 MB, free: 20.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.2546, allocations: 30.62 kB / 498.1 MB, free: 20.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/0.2546, allocations: 36.89 kB / 498.1 MB, free: 20.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.239e-05/0.2547, allocations: 333.9 kB / 498.4 MB, free: 20.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.2548, allocations: 55.81 kB / 498.5 MB, free: 20.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.255, allocations: 67.97 kB / 498.5 MB, free: 20.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002866/0.2553, allocations: 238.3 kB / 498.8 MB, free: 20.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2553, allocations: 0 / 498.8 MB, free: 20.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003787/0.2556, allocations: 244.2 kB / 499 MB, free: 19.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.2557, allocations: 70.92 kB / 499.1 MB, free: 19.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2557, allocations: 240 / 499.1 MB, free: 19.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.2557, allocations: 5.312 kB / 499.1 MB, free: 19.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.2558, allocations: 15.52 kB / 499.1 MB, free: 19.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2558, allocations: 7.984 kB / 499.1 MB, free: 19.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.256, allocations: 37.75 kB / 499.1 MB, free: 19.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.256, allocations: 4.469 kB / 499.2 MB, free: 19.8 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fileTxtLimits.state,fixedLimits.state) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001287/0.2562, allocations: 214.9 kB / 499.4 MB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.371e-05/0.2562, allocations: 27.23 kB / 499.4 MB, free: 19.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004496/0.2567, allocations: 283 kB / 499.7 MB, free: 19.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2567, allocations: 1.125 kB / 499.7 MB, free: 19.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2567, allocations: 0 / 499.7 MB, free: 19.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2567, allocations: 1.344 kB / 499.7 MB, free: 19.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.2569, allocations: 280.5 kB / 499.9 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2569, allocations: 0 / 499.9 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.816e-05/0.257, allocations: 19.58 kB / 500 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.257, allocations: 0.9688 kB / 500 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.257, allocations: 15.55 kB / 500 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.257, allocations: 5.438 kB / 500 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.257, allocations: 0 / 500 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004366/0.2574, allocations: 350.7 kB / 0.4886 GB, free: 18.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.128e-05/0.2575, allocations: 114.7 kB / 0.4887 GB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.837e-05/0.2575, allocations: 12.75 kB / 0.4887 GB, free: 18.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.2578, allocations: 32.97 kB / 0.4888 GB, free: 18.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.709e-05/0.2578, allocations: 17.52 kB / 0.4888 GB, free: 18.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.2578, allocations: 4.281 kB / 0.4888 GB, free: 18.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.2581, allocations: 272 kB / 0.489 GB, free: 18.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2581, allocations: 0 / 0.489 GB, free: 18.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.2584, allocations: 55.14 kB / 0.4891 GB, free: 18.49 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fixedLimits.state,fileTxtLimits.state) * Number of discrete states: 2 (fileTxtLimits.state,fixedLimits.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.001828/0.2602, allocations: 1.191 MB / 0.4902 GB, free: 17.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004112/0.2606, allocations: 239.5 kB / 0.4905 GB, free: 17.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2606, allocations: 0 / 0.4905 GB, free: 17.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.2608, allocations: 183.2 kB / 0.4906 GB, free: 17.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.2613, allocations: 50.8 kB / 0.4907 GB, free: 17.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002733/0.264, allocations: 2.476 MB / 0.4931 GB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/0.2642, allocations: 0.7531 MB / 0.4939 GB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.411e-05/0.2643, allocations: 22.25 kB / 0.4939 GB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.968e-05/0.2643, allocations: 68.84 kB / 0.4939 GB, free: 14.55 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2643, allocations: 0 / 0.4939 GB, free: 14.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02955/0.2939, allocations: 6.107 MB / 0.4999 GB, free: 11.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.614/8.908, allocations: 1.5 kB / 0.4999 GB, free: 11.21 MB / 366.1 MB " [Timeout remaining time 651] (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.324067356006708] Failed to read output from testmodel.py, exit status != 0: 9.037334376014769 9.054109132 8.800282166 Calling exit ...