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.005173/0.005172, allocations: 99.77 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 193.8 kB / 16.67 MB, free: 5.93 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.04279/0.04279, allocations: 8.405 MB / 298.9 MB, free: 6.398 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 63.89 kB / 413.3 MB, free: 22.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08733/0.08915, allocations: 51.37 MB / 464.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003173/0.09236, allocations: 1.845 MB / 466.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002134/0.09452, allocations: 1.483 MB / 468 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.044e-05/0.09464, allocations: 0 / 468 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002966/0.09497, allocations: 111.5 kB / 468.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002986/0.09528, allocations: 111.5 kB / 468.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004538/0.09574, allocations: 189.9 kB / 468.4 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003606/0.09611, allocations: 279.4 kB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.09624, allocations: 32.3 kB / 468.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/0.09645, allocations: 107.6 kB / 468.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.0967, allocations: 123.5 kB / 468.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.057e-05/0.09675, allocations: 16 kB / 469 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.09693, allocations: 83.91 kB / 469 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.822e-05/0.09701, allocations: 51.77 kB / 469.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.09713, allocations: 103.4 kB / 469.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003733/0.09751, allocations: 278.8 kB / 469.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.09752, allocations: 0 / 469.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09753, allocations: 0 / 469.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.09754, allocations: 4 kB / 469.5 MB, free: 13.95 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.000794/0.09834, allocations: 0.6065 MB / 470.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.09838, allocations: 11.89 kB / 470.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.126e-05/0.09844, allocations: 50.73 kB / 470.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.986e-05/0.0985, allocations: 28.8 kB / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.09883, allocations: 271.8 kB / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.09886, allocations: 12.38 kB / 470.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/0.09889, allocations: 15.94 kB / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003298/0.09923, allocations: 150 kB / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.09924, allocations: 0 / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.09927, allocations: 12 kB / 470.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.09928, allocations: 4 kB / 470.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002825/0.09957, allocations: 99.86 kB / 470.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009884/0.1006, allocations: 0.5043 MB / 471.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.1008, allocations: 110.5 kB / 471.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.101, allocations: 76.83 kB / 471.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.101, allocations: 4 kB / 471.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.1011, allocations: 34.56 kB / 471.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.1011, allocations: 0 / 471.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000687/0.1018, allocations: 301 kB / 471.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.1019, allocations: 140.4 kB / 471.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004144/0.1023, allocations: 363 kB / 472.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.1023, allocations: 29.7 kB / 472.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.1025, allocations: 160 kB / 472.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.302e-05/0.1025, allocations: 35.73 kB / 472.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.795e-05/0.1026, allocations: 30 kB / 472.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1027, allocations: 334.8 kB / 472.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.1029, allocations: 51.97 kB / 472.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.1031, allocations: 73.61 kB / 472.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003635/0.1035, allocations: 239.6 kB / 473.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1035, allocations: 0 / 473.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000446/0.1039, allocations: 240.8 kB / 473.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.583e-05/0.104, allocations: 63.41 kB / 473.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.104, allocations: 0 / 473.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.104, allocations: 3.938 kB / 473.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.1041, allocations: 19.98 kB / 473.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1041, allocations: 0 / 473.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.1044, allocations: 39.91 kB / 473.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.1044, allocations: 8 kB / 473.5 MB, free: 9.543 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.0002283/0.1046, allocations: 210.5 kB / 473.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.599e-05/0.1047, allocations: 31.86 kB / 473.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005393/0.1053, allocations: 274.6 kB / 474 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1053, allocations: 0 / 474 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1053, allocations: 0 / 474 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.1053, allocations: 4 kB / 474 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003047/0.1056, allocations: 273.5 kB / 474.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1056, allocations: 96 / 474.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.127e-05/0.1057, allocations: 19.92 kB / 474.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.1057, allocations: 4 kB / 474.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.1057, allocations: 7.938 kB / 474.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1057, allocations: 4.312 kB / 474.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1057, allocations: 0 / 474.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005128/0.1063, allocations: 350.7 kB / 474.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.1064, allocations: 120.9 kB / 474.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.844e-05/0.1064, allocations: 7.938 kB / 474.8 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.1067, allocations: 39.95 kB / 474.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.125e-05/0.1068, allocations: 8 kB / 474.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.1068, allocations: 7.984 kB / 474.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002859/0.1071, allocations: 269.9 kB / 475.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1071, allocations: 0 / 475.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003027/0.1074, allocations: 59.88 kB / 475.2 MB, free: 7.746 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.002099/0.1095, allocations: 1.181 MB / 476.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005046/0.11, allocations: 270.6 kB / 476.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.11, allocations: 0 / 476.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002631/0.1103, allocations: 202.7 kB / 476.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.1108, allocations: 47.8 kB / 476.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/0.1141, allocations: 2.467 MB / 479.3 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.1145, allocations: 0.7552 MB / 480.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.916e-05/0.1146, allocations: 29.36 kB / 480.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.1147, allocations: 71.41 kB / 480.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1147, allocations: 0 / 480.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03029/0.145, allocations: 6.045 MB / 486.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.659/8.804, allocations: 3.984 kB / 486.2 MB, free: 12.69 MB / 366.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)