Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.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.001627/0.001627, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002182/0.002182, allocations: 216 kB / 22.25 MB, free: 5.125 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.434/1.434, allocations: 230.6 MB / 256 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01332/0.01332, allocations: 2.616 MB / 315.1 MB, free: 480 kB / 238.1 MB " [Timeout remaining time 180] Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.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(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BLDC 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: BLDC requested package ModelicaServices of version 4.0.0. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package Complex of version 4.0.0. Complex 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.002963/0.002963, allocations: 111.8 kB / 438.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1073, allocations: 53.98 MB / 492.2 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004907/0.1122, allocations: 3.049 MB / 495.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002587/0.1147, allocations: 1.391 MB / 496.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002413/0.115, allocations: 15.88 kB / 496.6 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003695/0.1154, allocations: 95.17 kB / 496.7 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001176/0.1165, allocations: 422.1 kB / 497.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003764/0.1169, allocations: 179.7 kB / 497.3 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.1181, allocations: 0.7797 MB / 498.1 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004356/0.1185, allocations: 241.8 kB / 498.3 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004033/0.1189, allocations: 330.9 kB / 498.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004394/0.1194, allocations: 346.6 kB / 499 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.799e-05/0.1195, allocations: 60 kB / 499 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003165/0.1198, allocations: 171.9 kB / 499.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00024/0.12, allocations: 243.2 kB / 499.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002958/0.1203, allocations: 334.1 kB / 499.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.1213, allocations: 0.8675 MB / 0.4889 GB, free: 15.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1213, allocations: 0 / 0.4889 GB, free: 15.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1213, allocations: 0 / 0.4889 GB, free: 15.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.1213, allocations: 0 / 0.4889 GB, free: 15.82 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: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.002898/0.1242, allocations: 1.159 MB / 0.49 GB, free: 14.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.1243, allocations: 8.031 kB / 0.49 GB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001257/0.1244, allocations: 110.7 kB / 0.4902 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002527/0.1246, allocations: 88.41 kB / 0.4902 GB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000843/0.1255, allocations: 0.4986 MB / 0.4907 GB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.25e-05/0.1255, allocations: 41.67 kB / 0.4908 GB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.013e-05/0.1256, allocations: 60.08 kB / 0.4908 GB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.127, allocations: 0.7261 MB / 0.4915 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.127, allocations: 0 / 0.4915 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.176e-05/0.1271, allocations: 23.94 kB / 0.4916 GB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.999e-05/0.1271, allocations: 37.3 kB / 0.4916 GB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.1287, allocations: 0.6257 MB / 0.4922 GB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003887/0.1325, allocations: 2.149 MB / 0.4943 GB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.1342, allocations: 0.5446 MB / 0.4948 GB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006243/0.1348, allocations: 249.3 kB / 0.4951 GB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001223/0.1349, allocations: 27.91 kB / 0.4951 GB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.1349, allocations: 38.52 kB / 0.4951 GB, free: 9.266 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.314e-06/0.135, allocations: 0 / 0.4951 GB, free: 9.266 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002094/0.137, allocations: 0.7311 MB / 0.4958 GB, free: 8.527 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.1371, allocations: 55.41 kB / 0.4959 GB, free: 8.461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007716/0.1379, allocations: 0.6124 MB / 0.4965 GB, free: 7.844 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/0.1379, allocations: 37.7 kB / 0.4965 GB, free: 7.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.1382, allocations: 320.5 kB / 0.4968 GB, free: 7.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.1383, allocations: 142.8 kB / 0.497 GB, free: 7.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/0.1385, allocations: 118.1 kB / 0.4971 GB, free: 7.215 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.1387, allocations: 378.8 kB / 0.4974 GB, free: 6.836 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006075/0.1393, allocations: 220.8 kB / 0.4977 GB, free: 6.621 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007046/0.14, allocations: 338.6 kB / 0.498 GB, free: 6.242 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.1412, allocations: 498.3 kB / 0.4985 GB, free: 5.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.1412, allocations: 0 / 0.4985 GB, free: 5.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001613/0.1428, allocations: 0.6237 MB / 0.4991 GB, free: 5.074 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.1429, allocations: 12.09 kB / 0.4991 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1429, allocations: 7.984 kB / 0.4991 GB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.1429, allocations: 4 kB / 0.4991 GB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.1432, allocations: 87.83 kB / 0.4992 GB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.1432, allocations: 7.938 kB / 0.4992 GB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004312/0.1437, allocations: 79.58 kB / 0.4993 GB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.697e-05/0.1437, allocations: 27.98 kB / 0.4993 GB, free: 4.852 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003525/0.1441, allocations: 263.6 kB / 0.4995 GB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.1442, allocations: 67.52 kB / 0.4996 GB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.1458, allocations: 0.6126 MB / 0.5002 GB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.1459, allocations: 15.98 kB / 0.5002 GB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1459, allocations: 0 / 0.5002 GB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.1459, allocations: 0 / 0.5002 GB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/0.1485, allocations: 1.321 MB / 0.5015 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1485, allocations: 0 / 0.5015 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.1487, allocations: 59.91 kB / 0.5016 GB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1487, allocations: 3.938 kB / 0.5016 GB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.962e-05/0.1488, allocations: 19.92 kB / 0.5016 GB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.114e-06/0.1488, allocations: 8 kB / 0.5016 GB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1488, allocations: 0 / 0.5016 GB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.151, allocations: 0.9628 MB / 0.5025 GB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.1513, allocations: 119.5 kB / 0.5026 GB, free: 1.324 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.323e-05/0.1513, allocations: 11.98 kB / 0.5027 GB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.1518, allocations: 59.92 kB / 0.5027 GB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.152, allocations: 115.8 kB / 0.5028 GB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.692e-05/0.152, allocations: 20.05 kB / 0.5028 GB, free: 1.121 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005184/0.1526, allocations: 438.8 kB / 0.5033 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1526, allocations: 3.938 kB / 0.5033 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005164/0.1531, allocations: 151.7 kB / 0.5034 GB, free: 0.543 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.1935/0.3465, allocations: 1.54 MB / 0.5049 GB, free: 23.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.3481, allocations: 0.5192 MB / 0.5054 GB, free: 23.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3481, allocations: 2.031 kB / 0.5054 GB, free: 23.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007179/0.3488, allocations: 272.8 kB / 0.5057 GB, free: 23.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005613/0.3494, allocations: 63.98 kB / 0.5057 GB, free: 23.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008324/0.3577, allocations: 5.738 MB / 0.5113 GB, free: 20.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.3581, allocations: 0.9462 MB / 0.5123 GB, free: 19.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004518/0.3586, allocations: 191.4 kB / 0.5125 GB, free: 19.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002843/0.3589, allocations: 243.1 kB / 0.5127 GB, free: 19.66 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3589, allocations: 1.375 kB / 0.5127 GB, free: 19.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04645/0.4053, allocations: 13.82 MB / 0.5262 GB, free: 14.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.84, allocations: 2.406 kB / 0.5262 GB, free: 14.89 MB / 366.1 MB " [Timeout remaining time 648] (rm -f BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; mkfifo BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoElectronicCommutator.pipe >> ../files/BLDC_BLDC.Examples.DemoElectronicCommutator.sim & python3 -m fmpy simulate --output-file BLDC_BLDC.Examples.DemoElectronicCommutator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.00001e-05 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.077374068998324] Failed to read output from testmodel.py, exit status != 0: 11.952890233002108 11.972089681 11.847259555 Calling exit ...