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 2.1.4-main/package.mo", uses=false) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-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.001569/0.001569, 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.001569/0.001569, allocations: 197.2 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.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1637/0.1637, allocations: 8.941 MB / 299.3 MB, free: 1.961 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001926, allocations: 63.89 kB / 361.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1022, allocations: 51.47 MB / 413.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestLimTorque): time 0.003387/0.1056, allocations: 1.867 MB / 415.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.1078, allocations: 1.472 MB / 416.7 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.181e-05/0.1079, allocations: 3.938 kB / 416.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003319/0.1083, allocations: 111.6 kB / 416.9 MB, free: 6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003263/0.1087, allocations: 115.4 kB / 417 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004771/0.1092, allocations: 182.9 kB / 417.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003496/0.1095, allocations: 275.3 kB / 417.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.1096, allocations: 32.3 kB / 417.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.1098, allocations: 103.7 kB / 417.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.1101, allocations: 135.5 kB / 417.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.852e-05/0.1101, allocations: 16 kB / 417.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.1103, allocations: 75.97 kB / 417.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.59e-05/0.1104, allocations: 47.78 kB / 417.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.1105, allocations: 103.3 kB / 417.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.1108, allocations: 271.2 kB / 418.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1109, allocations: 0 / 418.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1109, allocations: 0 / 418.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1109, allocations: 0 / 418.2 MB, free: 4.672 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.000853/0.1117, allocations: 0.603 MB / 418.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1118, allocations: 11.89 kB / 418.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.076e-05/0.1118, allocations: 50.61 kB / 418.9 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.605e-05/0.1119, allocations: 28.66 kB / 418.9 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.1123, allocations: 275.6 kB / 419.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.1123, allocations: 8.375 kB / 419.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.1124, allocations: 15.94 kB / 419.2 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003421/0.1127, allocations: 165.2 kB / 419.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1127, allocations: 0 / 419.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.1128, allocations: 4 kB / 419.3 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.1128, allocations: 4 kB / 419.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.1131, allocations: 95.92 kB / 419.4 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009878/0.114, allocations: 0.5081 MB / 419.9 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.1143, allocations: 102.5 kB / 420 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.1145, allocations: 76.81 kB / 420.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.1145, allocations: 4.078 kB / 420.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.1146, allocations: 38.55 kB / 420.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.1146, allocations: 0 / 420.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007162/0.1153, allocations: 301 kB / 420.5 MB, free: 2.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.539e-05/0.1154, allocations: 136.5 kB / 420.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004213/0.1158, allocations: 370.8 kB / 421 MB, free: 1.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.1158, allocations: 29.7 kB / 421 MB, free: 1.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.116, allocations: 148 kB / 421.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.107e-05/0.116, allocations: 35.55 kB / 421.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.28e-05/0.1161, allocations: 37.72 kB / 421.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1163, allocations: 338.8 kB / 421.5 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.1164, allocations: 51.91 kB / 421.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001592/0.1166, allocations: 69.67 kB / 421.6 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.117, allocations: 231.6 kB / 421.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.117, allocations: 8.031 kB / 421.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004505/0.1175, allocations: 240.7 kB / 422.1 MB, free: 424 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.195e-05/0.1175, allocations: 63.39 kB / 422.2 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1175, allocations: 0 / 422.2 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1176, allocations: 3.938 kB / 422.2 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1177, allocations: 15.98 kB / 422.2 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.1177, allocations: 0 / 422.2 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.1179, allocations: 47.84 kB / 422.2 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.1179, allocations: 4 kB / 422.2 MB, free: 276 kB / 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.0001941/0.1181, allocations: 209.8 kB / 422.5 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.597e-05/0.1182, allocations: 31.62 kB / 422.5 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1404/0.2586, allocations: 268.4 kB / 422.7 MB, free: 43.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.2587, allocations: 1.5 kB / 422.7 MB, free: 43.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2587, allocations: 3.844 kB / 422.7 MB, free: 43.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2587, allocations: 0 / 422.7 MB, free: 43.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/0.2589, allocations: 273.3 kB / 423 MB, free: 43.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.259, allocations: 1.938 kB / 423 MB, free: 43.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.541e-05/0.259, allocations: 14.97 kB / 423 MB, free: 43.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2591, allocations: 1.281 kB / 423 MB, free: 43.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.2591, allocations: 10.03 kB / 423 MB, free: 43.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.2591, allocations: 0.5625 kB / 423 MB, free: 43.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2591, allocations: 4.094 kB / 423 MB, free: 43.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004246/0.2595, allocations: 355 kB / 423.4 MB, free: 43.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.246e-05/0.2596, allocations: 114.2 kB / 423.5 MB, free: 43.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/0.2597, allocations: 5.344 kB / 423.5 MB, free: 43.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.2599, allocations: 36.17 kB / 423.5 MB, free: 43.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.392e-05/0.26, allocations: 15.48 kB / 423.6 MB, free: 43.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.26, allocations: 11.69 kB / 423.6 MB, free: 43.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002265/0.2602, allocations: 264.4 kB / 423.8 MB, free: 43.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2603, allocations: 1 kB / 423.8 MB, free: 43.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003043/0.2606, allocations: 53.95 kB / 423.9 MB, free: 43.17 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.001781/0.2623, allocations: 1.18 MB / 425.1 MB, free: 42.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003944/0.2628, allocations: 264.7 kB / 425.3 MB, free: 42.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2628, allocations: 3.219 kB / 425.3 MB, free: 42.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.263, allocations: 204.2 kB / 425.5 MB, free: 42.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.2634, allocations: 39.25 kB / 425.6 MB, free: 42.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.2658, allocations: 2.463 MB / 428 MB, free: 40.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001559/0.266, allocations: 0.7456 MB / 428.8 MB, free: 40.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.176e-05/0.266, allocations: 24.44 kB / 428.8 MB, free: 40.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.818e-05/0.2661, allocations: 69.86 kB / 428.9 MB, free: 40.13 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2661, allocations: 1.5 kB / 428.9 MB, free: 40.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.2946, allocations: 5.934 MB / 434.8 MB, free: 39.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.384, allocations: 25.5 kB / 434.8 MB, free: 39.19 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestLimTorque_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestLimTorque.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestLimTorque.pipe 2>&1)