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.001307/0.001307, allocations: 107.8 kB / 16.45 MB, free: 6.445 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.001328/0.001328, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.477/1.477, allocations: 225.6 MB / 247.8 MB, free: 3.746 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.04861/0.04861, allocations: 8.542 MB / 311.2 MB, free: 2.141 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.001946/0.001946, allocations: 75.88 kB / 433.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2737, allocations: 54.19 MB / 487.4 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003142/0.2769, allocations: 1.873 MB / 489.3 MB, free: 24.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.279, allocations: 1.499 MB / 490.8 MB, free: 23.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.2791, allocations: 2.125 kB / 490.8 MB, free: 23.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003726/0.2795, allocations: 105.9 kB / 490.9 MB, free: 23.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003746/0.2799, allocations: 112 kB / 491 MB, free: 23.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005131/0.2804, allocations: 185.8 kB / 491.2 MB, free: 22.97 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000385/0.2808, allocations: 259.2 kB / 491.4 MB, free: 22.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.2809, allocations: 32.38 kB / 491.5 MB, free: 22.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001807/0.2811, allocations: 107.1 kB / 491.6 MB, free: 22.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002553/0.2814, allocations: 137.6 kB / 491.7 MB, free: 22.74 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.2814, allocations: 16.53 kB / 491.7 MB, free: 22.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001673/0.2816, allocations: 77.17 kB / 491.8 MB, free: 22.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.321e-05/0.2816, allocations: 49.25 kB / 491.8 MB, free: 22.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.03e-05/0.2817, allocations: 101 kB / 491.9 MB, free: 22.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003841/0.2821, allocations: 276.9 kB / 492.2 MB, free: 22.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2821, allocations: 0.8438 kB / 492.2 MB, free: 22.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2821, allocations: 0 / 492.2 MB, free: 22.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.2821, allocations: 7.938 kB / 492.2 MB, free: 22.5 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.0007188/0.2828, allocations: 0.6112 MB / 492.8 MB, free: 21.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.2829, allocations: 13.8 kB / 492.8 MB, free: 21.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.817e-05/0.2829, allocations: 41.19 kB / 492.9 MB, free: 21.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.241e-05/0.283, allocations: 29.42 kB / 492.9 MB, free: 21.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.2833, allocations: 285.2 kB / 493.2 MB, free: 21.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.2833, allocations: 10.34 kB / 493.2 MB, free: 21.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.2833, allocations: 13.16 kB / 493.2 MB, free: 21.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003253/0.2837, allocations: 154 kB / 493.4 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.2837, allocations: 5.438 kB / 493.4 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.2837, allocations: 2.875 kB / 493.4 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.321e-06/0.2837, allocations: 1.5 kB / 493.4 MB, free: 21.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/0.284, allocations: 95.27 kB / 493.5 MB, free: 21.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009273/0.2849, allocations: 0.5068 MB / 494 MB, free: 21.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.2851, allocations: 93 kB / 494.1 MB, free: 21.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.2852, allocations: 58.64 kB / 494.1 MB, free: 21.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.2853, allocations: 6.281 kB / 494.1 MB, free: 21.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.2853, allocations: 32.38 kB / 494.2 MB, free: 21.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.2853, allocations: 1.094 kB / 494.2 MB, free: 21.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006279/0.2859, allocations: 308.2 kB / 494.5 MB, free: 20.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.286, allocations: 139.4 kB / 494.6 MB, free: 20.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000372/0.2863, allocations: 359.7 kB / 495 MB, free: 20.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.2864, allocations: 29.3 kB / 495 MB, free: 20.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.642e-05/0.2864, allocations: 158.2 kB / 495.1 MB, free: 20.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.303e-05/0.2865, allocations: 31.45 kB / 495.2 MB, free: 20.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.2865, allocations: 35.88 kB / 495.2 MB, free: 20.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.093e-05/0.2866, allocations: 337.6 kB / 495.5 MB, free: 19.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.2867, allocations: 51.77 kB / 495.6 MB, free: 19.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.2869, allocations: 71.5 kB / 495.6 MB, free: 19.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002787/0.2872, allocations: 233.2 kB / 495.9 MB, free: 19.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2872, allocations: 0 / 495.9 MB, free: 19.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000389/0.2876, allocations: 251.6 kB / 496.1 MB, free: 19.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.2876, allocations: 66.05 kB / 496.2 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2876, allocations: 0 / 496.2 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2876, allocations: 3.938 kB / 496.2 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.2877, allocations: 15.98 kB / 496.2 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.2877, allocations: 0.6562 kB / 496.2 MB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/0.2879, allocations: 35.14 kB / 496.2 MB, free: 19.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.288, allocations: 13.5 kB / 496.3 MB, free: 19.5 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.0001532/0.2881, allocations: 209 kB / 496.5 MB, free: 19.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.81e-05/0.2882, allocations: 27.5 kB / 496.5 MB, free: 19.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004958/0.2887, allocations: 273.8 kB / 496.8 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.2887, allocations: 1.766 kB / 496.8 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2887, allocations: 0 / 496.8 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2887, allocations: 2.109 kB / 496.8 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.289, allocations: 285.6 kB / 497 MB, free: 18.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.289, allocations: 1.094 kB / 497 MB, free: 18.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.882e-05/0.289, allocations: 19.34 kB / 497.1 MB, free: 18.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.289, allocations: 0 / 497.1 MB, free: 18.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.2891, allocations: 17.22 kB / 497.1 MB, free: 18.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2891, allocations: 0 / 497.1 MB, free: 18.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2891, allocations: 5.266 kB / 497.1 MB, free: 18.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004342/0.2895, allocations: 359.6 kB / 497.4 MB, free: 18.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.133e-05/0.2896, allocations: 114.8 kB / 497.5 MB, free: 18.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/0.2896, allocations: 8.328 kB / 497.5 MB, free: 18.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.2899, allocations: 30.39 kB / 497.6 MB, free: 18.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.053e-05/0.2899, allocations: 15.97 kB / 497.6 MB, free: 18.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.29, allocations: 9.953 kB / 497.6 MB, free: 18.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.2902, allocations: 274.9 kB / 497.9 MB, free: 18.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2902, allocations: 0 / 497.9 MB, free: 18.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.2905, allocations: 56.36 kB / 497.9 MB, free: 18.34 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.001878/0.2924, allocations: 1.184 MB / 499.1 MB, free: 17.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005835/0.293, allocations: 241.2 kB / 499.3 MB, free: 17.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.293, allocations: 0 / 499.3 MB, free: 17.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000199/0.2932, allocations: 183.2 kB / 499.5 MB, free: 17.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.2937, allocations: 48.91 kB / 499.6 MB, free: 17.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.2965, allocations: 2.476 MB / 0.4903 GB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001956/0.2967, allocations: 0.7493 MB / 0.491 GB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.2968, allocations: 22.53 kB / 0.491 GB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.932e-05/0.2969, allocations: 68.47 kB / 0.4911 GB, free: 14.55 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2969, allocations: 0 / 0.4911 GB, free: 14.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.3291, allocations: 6.091 MB / 0.497 GB, free: 11.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.795/9.124, allocations: 3.938 kB / 0.4971 GB, free: 11.23 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 --stepSize=0.01 --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: 12.305443811696023] Failed to read output from testmodel.py, exit status != 0: 9.246274969074875 9.256676543 8.972367934 Calling exit ...