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.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.00131/0.00131, allocations: 110.1 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] 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.001612/0.001612, allocations: 216.3 kB / 23.04 MB, free: 5.078 MB / 14.72 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 1.517/1.517, allocations: 230.6 MB / 256.8 MB, free: 7.973 MB / 206.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.04361/0.04361, allocations: 8.535 MB / 321.8 MB, free: 10.6 MB / 254.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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 ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: EHPTlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003016/0.003016, allocations: 63.91 kB / 447.7 MB, free: 15.94 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1316, allocations: 55.41 MB / 0.4913 GB, free: 8.438 MB / 366.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.004808/0.1364, allocations: 1.925 MB / 0.4932 GB, free: 6.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00316/0.1395, allocations: 1.757 MB / 0.4949 GB, free: 4.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/0.1397, allocations: 4 kB / 0.4949 GB, free: 4.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003561/0.1401, allocations: 107.5 kB / 0.495 GB, free: 4.625 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005321/0.1406, allocations: 167.3 kB / 0.4952 GB, free: 4.461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.1411, allocations: 198.3 kB / 0.4954 GB, free: 4.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004644/0.1416, allocations: 287.3 kB / 0.4957 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.1417, allocations: 24.58 kB / 0.4957 GB, free: 3.961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/0.142, allocations: 123.5 kB / 0.4958 GB, free: 3.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000301/0.1423, allocations: 139.4 kB / 0.4959 GB, free: 3.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.765e-05/0.1424, allocations: 20 kB / 0.496 GB, free: 3.684 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002693/0.1427, allocations: 123.9 kB / 0.4961 GB, free: 3.562 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.714e-05/0.1428, allocations: 63.7 kB / 0.4961 GB, free: 3.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000128/0.1429, allocations: 111.3 kB / 0.4962 GB, free: 3.391 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005982/0.1435, allocations: 334.7 kB / 0.4966 GB, free: 3.062 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1435, allocations: 0 / 0.4966 GB, free: 3.062 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1435, allocations: 0 / 0.4966 GB, free: 3.062 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1435, allocations: 3.938 kB / 0.4966 GB, free: 3.059 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.0009927/0.1445, allocations: 0.5662 MB / 0.4971 GB, free: 2.449 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1445, allocations: 8.031 kB / 0.4971 GB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.852e-05/0.1445, allocations: 4.188 kB / 0.4971 GB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.429e-05/0.1446, allocations: 42.75 kB / 0.4972 GB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.056e-05/0.1447, allocations: 32.75 kB / 0.4972 GB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003524/0.145, allocations: 222.6 kB / 0.4974 GB, free: 2.113 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.145, allocations: 12.12 kB / 0.4974 GB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.1451, allocations: 12 kB / 0.4974 GB, free: 2.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003465/0.1454, allocations: 143.3 kB / 0.4976 GB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1454, allocations: 4 kB / 0.4976 GB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.1454, allocations: 7.938 kB / 0.4976 GB, free: 1.926 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1454, allocations: 8 kB / 0.4976 GB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.1457, allocations: 99.86 kB / 0.4977 GB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.1468, allocations: 495.5 kB / 0.4982 GB, free: 1.293 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.147, allocations: 90.47 kB / 0.4982 GB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.1472, allocations: 56.83 kB / 0.4983 GB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.1472, allocations: 4 kB / 0.4983 GB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.1473, allocations: 42.55 kB / 0.4983 GB, free: 1.082 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.243e-06/0.1473, allocations: 0 / 0.4983 GB, free: 1.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007378/0.148, allocations: 308.9 kB / 0.4986 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.561e-05/0.1481, allocations: 136.5 kB / 0.4988 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.1486, allocations: 388.5 kB / 0.4991 GB, free: 216 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.1486, allocations: 29.7 kB / 0.4992 GB, free: 180 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.1487, allocations: 160 kB / 0.4993 GB, free: 16 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.801e-05/0.1488, allocations: 35.89 kB / 0.4994 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.516e-05/0.1489, allocations: 37.75 kB / 0.4994 GB, free: 15.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.149, allocations: 334.8 kB / 0.4997 GB, free: 15.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.1492, allocations: 55.94 kB / 0.4998 GB, free: 15.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.1493, allocations: 65.69 kB / 0.4998 GB, free: 15.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.1497, allocations: 239.6 kB / 0.5001 GB, free: 15.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1497, allocations: 0 / 0.5001 GB, free: 15.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004666/0.1502, allocations: 244.9 kB / 0.5003 GB, free: 14.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.539e-05/0.1502, allocations: 67.34 kB / 0.5004 GB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1502, allocations: 7.922 kB / 0.5004 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.1503, allocations: 0 / 0.5004 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.1504, allocations: 12.38 kB / 0.5004 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1504, allocations: 7.984 kB / 0.5004 GB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.1506, allocations: 35.92 kB / 0.5004 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.1506, allocations: 4 kB / 0.5004 GB, free: 14.81 MB / 382.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.0002212/0.1508, allocations: 217.2 kB / 0.5006 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.726e-05/0.1509, allocations: 27.86 kB / 0.5007 GB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005349/0.1514, allocations: 282.7 kB / 0.5009 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1514, allocations: 3.984 kB / 0.5009 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1514, allocations: 0 / 0.5009 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1514, allocations: 0 / 0.5009 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003273/0.1518, allocations: 264.5 kB / 0.5012 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1518, allocations: 0 / 0.5012 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.231e-05/0.1518, allocations: 19.98 kB / 0.5012 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1518, allocations: 0 / 0.5012 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.1519, allocations: 7.938 kB / 0.5012 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-06/0.1519, allocations: 4 kB / 0.5012 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1519, allocations: 0 / 0.5012 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005324/0.1524, allocations: 362.6 kB / 0.5016 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.908e-05/0.1525, allocations: 35.84 kB / 0.5016 GB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.635e-05/0.1525, allocations: 11.92 kB / 0.5016 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.1528, allocations: 35.97 kB / 0.5016 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-05/0.1529, allocations: 15.97 kB / 0.5016 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.1529, allocations: 8 kB / 0.5017 GB, free: 13.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003157/0.1532, allocations: 287 kB / 0.5019 GB, free: 13.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1532, allocations: 0 / 0.5019 GB, free: 13.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.1535, allocations: 67.86 kB / 0.502 GB, free: 13.07 MB / 382.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.002449/0.156, allocations: 1.245 MB / 0.5032 GB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005367/0.1565, allocations: 242.7 kB / 0.5034 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.1565, allocations: 4 kB / 0.5034 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002608/0.1568, allocations: 178.9 kB / 0.5036 GB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004867/0.1573, allocations: 55.33 kB / 0.5037 GB, free: 11.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.1609, allocations: 2.546 MB / 0.5062 GB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.1613, allocations: 0.7512 MB / 0.5069 GB, free: 8.031 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.1615, allocations: 21.42 kB / 0.5069 GB, free: 8.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.1616, allocations: 83.39 kB / 0.507 GB, free: 7.926 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1616, allocations: 0 / 0.507 GB, free: 7.926 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03992/0.2015, allocations: 6.876 MB / 0.5137 GB, free: 1.102 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.53, allocations: 15.62 kB / 0.5137 GB, free: 1.094 MB / 382.1 MB " [Timeout remaining time 648] (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 os._exit(0), Time elapsed: 14.504956700955518] Failed to read output from testmodel.py, exit status != 0: 11.904827716061845 11.918970664 11.772510746 Calling exit ...