Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo", uses=false) Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/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_latest_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestLimTorque,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestLimTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 192.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.1431/0.1431, allocations: 8.4 MB / 298.8 MB, free: 2.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 67.88 kB / 361.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09462, allocations: 51.37 MB / 412.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003113/0.09776, allocations: 1.842 MB / 414.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.09979, allocations: 1.48 MB / 416 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.853e-05/0.09988, allocations: 0 / 416 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002652/0.1002, allocations: 103.6 kB / 416.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002668/0.1004, allocations: 119.4 kB / 416.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004001/0.1008, allocations: 179.6 kB / 416.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003166/0.1012, allocations: 267.3 kB / 416.6 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.1013, allocations: 40.27 kB / 416.7 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.1015, allocations: 103.6 kB / 416.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.1017, allocations: 135.5 kB / 416.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.723e-05/0.1017, allocations: 16 kB / 416.9 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.1019, allocations: 75.97 kB / 417 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.173e-05/0.102, allocations: 51.77 kB / 417.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.1021, allocations: 103.3 kB / 417.2 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000315/0.1024, allocations: 263.2 kB / 417.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1024, allocations: 0 / 417.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1024, allocations: 3.938 kB / 417.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1024, allocations: 0 / 417.4 MB, free: 5.402 MB / 350.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.0008086/0.1032, allocations: 0.6196 MB / 418 MB, free: 4.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1033, allocations: 11.89 kB / 418 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.009e-05/0.1033, allocations: 38.75 kB / 418.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.225e-05/0.1034, allocations: 28.66 kB / 418.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.1037, allocations: 271.6 kB / 418.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.1038, allocations: 12.38 kB / 418.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.1038, allocations: 15.88 kB / 418.4 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.1042, allocations: 157.4 kB / 418.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1042, allocations: 0 / 418.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.1042, allocations: 4 kB / 418.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.1042, allocations: 4 kB / 418.6 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002869/0.1045, allocations: 99.88 kB / 418.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009693/0.1055, allocations: 0.5042 MB / 419.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.1057, allocations: 110.5 kB / 419.3 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.1059, allocations: 76.83 kB / 419.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.106, allocations: 12.09 kB / 419.4 MB, free: 3.273 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.662e-05/0.106, allocations: 30.56 kB / 419.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.106, allocations: 0 / 419.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000661/0.1067, allocations: 300.6 kB / 419.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.414e-05/0.1068, allocations: 144.4 kB / 419.8 MB, free: 2.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.1072, allocations: 362.9 kB / 420.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.1072, allocations: 33.7 kB / 420.2 MB, free: 2.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.1073, allocations: 148 kB / 420.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.1074, allocations: 35.55 kB / 420.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.055e-05/0.1074, allocations: 29.72 kB / 420.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1076, allocations: 342.8 kB / 420.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.1078, allocations: 51.95 kB / 420.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.1079, allocations: 73.97 kB / 420.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003774/0.1083, allocations: 231.6 kB / 421.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1083, allocations: 0 / 421.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004298/0.1088, allocations: 248.7 kB / 421.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.137e-05/0.1088, allocations: 63.41 kB / 421.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1088, allocations: 0 / 421.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.1088, allocations: 3.938 kB / 421.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.109, allocations: 15.98 kB / 421.4 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.109, allocations: 240 / 421.4 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.1092, allocations: 43.89 kB / 421.5 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.1092, allocations: 7.984 kB / 421.5 MB, free: 0.9922 MB / 350.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.0001818/0.1094, allocations: 213.7 kB / 421.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.567e-05/0.1095, allocations: 31.62 kB / 421.7 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004941/0.11, allocations: 262.7 kB / 422 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.11, allocations: 0 / 422 MB, free: 464 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.11, allocations: 8 kB / 422 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.11, allocations: 0 / 422 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002921/0.1103, allocations: 277.5 kB / 422.3 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1103, allocations: 4 kB / 422.3 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.793e-05/0.1104, allocations: 11.98 kB / 422.3 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.1104, allocations: 4 kB / 422.3 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.1104, allocations: 7.938 kB / 422.3 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1105, allocations: 4 kB / 422.3 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1105, allocations: 0 / 422.3 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1388/0.2493, allocations: 352.6 kB / 422.6 MB, free: 43.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.054e-05/0.2494, allocations: 121.7 kB / 422.8 MB, free: 43.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.054e-05/0.2495, allocations: 12.5 kB / 422.8 MB, free: 43.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.2497, allocations: 32.03 kB / 422.8 MB, free: 43.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.57e-05/0.2498, allocations: 17.7 kB / 422.8 MB, free: 43.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.2498, allocations: 1.781 kB / 422.8 MB, free: 43.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002354/0.2501, allocations: 273.5 kB / 423.1 MB, free: 43.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2501, allocations: 0 / 423.1 MB, free: 43.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003564/0.2504, allocations: 47.95 kB / 423.1 MB, free: 43.75 MB / 350.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.001738/0.2522, allocations: 1.179 MB / 424.3 MB, free: 43.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003884/0.2526, allocations: 267.4 kB / 424.6 MB, free: 42.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2526, allocations: 0 / 424.6 MB, free: 42.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.2528, allocations: 200.2 kB / 424.8 MB, free: 42.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.2532, allocations: 44.94 kB / 424.8 MB, free: 42.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.2555, allocations: 2.459 MB / 427.3 MB, free: 41.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.2557, allocations: 0.7479 MB / 428 MB, free: 40.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.908e-05/0.2558, allocations: 29.92 kB / 428 MB, free: 40.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.791e-05/0.2559, allocations: 66.62 kB / 428.1 MB, free: 40.74 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2559, allocations: 0 / 428.1 MB, free: 40.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.286, allocations: 5.935 MB / 434 MB, free: 39.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.93/8.216, allocations: 22.08 kB / 434.1 MB, free: 39.81 MB / 350.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestLimTorque.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe 2>&1)