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.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/BLDC 1.9.0/package.mo", uses=false) 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.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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001168, 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.001151/0.001151, allocations: 196.9 kB / 16.54 MB, free: 6.672 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1121/0.1121, allocations: 2.583 MB / 293 MB, free: 3.395 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 95.86 kB / 354.1 MB, free: 4.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08813/0.08993, allocations: 50.03 MB / 404.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004454/0.09442, allocations: 2.994 MB / 407.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.09688, allocations: 1.317 MB / 408.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003659/0.09726, allocations: 11.94 kB / 408.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004064/0.09768, allocations: 99.17 kB / 408.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.09907, allocations: 437.8 kB / 409 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.09949, allocations: 171.8 kB / 409.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.1006, allocations: 0.776 MB / 410 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005056/0.1011, allocations: 365.6 kB / 410.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000421/0.1016, allocations: 319 kB / 410.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004654/0.102, allocations: 338.6 kB / 411 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.1022, allocations: 60 kB / 411 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003186/0.1025, allocations: 143.9 kB / 411.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002299/0.1027, allocations: 219.4 kB / 411.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003626/0.1031, allocations: 338 kB / 411.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009054/0.104, allocations: 0.8178 MB / 412.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.104, allocations: 0 / 412.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.104, allocations: 0 / 412.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.397e-05/0.1041, allocations: 3.938 kB / 412.5 MB, free: 10.3 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: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.002838/0.1069, allocations: 1.182 MB / 413.7 MB, free: 9.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.107, allocations: 8.031 kB / 413.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.1071, allocations: 94.7 kB / 413.8 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/0.1073, allocations: 91.98 kB / 413.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007451/0.1081, allocations: 0.5443 MB / 414.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.1081, allocations: 41.62 kB / 414.5 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.118e-05/0.1082, allocations: 56.12 kB / 414.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/0.1096, allocations: 0.7261 MB / 415.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.1096, allocations: 0 / 415.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.965e-05/0.1097, allocations: 24 kB / 415.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.081e-05/0.1098, allocations: 37.3 kB / 415.3 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001699/0.1115, allocations: 0.6218 MB / 416 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003845/0.1153, allocations: 2.207 MB / 418.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.1171, allocations: 0.5573 MB / 418.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006791/0.1178, allocations: 260.7 kB / 419 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001601/0.118, allocations: 178.1 kB / 419.1 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.118, allocations: 42.5 kB / 419.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.024e-06/0.118, allocations: 0 / 419.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002198/0.1202, allocations: 0.7275 MB / 419.9 MB, free: 2.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.681e-05/0.1203, allocations: 59.34 kB / 420 MB, free: 2.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006977/0.121, allocations: 0.6122 MB / 420.6 MB, free: 1.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.225e-05/0.121, allocations: 37.7 kB / 420.6 MB, free: 1.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.1213, allocations: 327.8 kB / 420.9 MB, free: 1.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.1214, allocations: 130.1 kB / 421.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.1216, allocations: 114.2 kB / 421.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1217, allocations: 370.8 kB / 421.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006571/0.1224, allocations: 221 kB / 421.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007084/0.1231, allocations: 347.1 kB / 422.1 MB, free: 392 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1536/0.2767, allocations: 493.8 kB / 422.6 MB, free: 50.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.2768, allocations: 2.344 kB / 422.6 MB, free: 50.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001937/0.2787, allocations: 0.6255 MB / 423.2 MB, free: 50.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.2788, allocations: 6.406 kB / 423.2 MB, free: 50.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.2788, allocations: 4.5 kB / 423.2 MB, free: 50.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.2788, allocations: 5.562 kB / 423.2 MB, free: 50.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003402/0.2792, allocations: 87.19 kB / 423.3 MB, free: 50.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.2792, allocations: 6.938 kB / 423.3 MB, free: 50.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005023/0.2797, allocations: 85.2 kB / 423.4 MB, free: 50.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.2798, allocations: 23.23 kB / 423.4 MB, free: 50.1 MB / 350.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.0002923/0.2801, allocations: 271.3 kB / 423.7 MB, free: 49.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.2802, allocations: 65.08 kB / 423.7 MB, free: 49.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.2817, allocations: 0.6149 MB / 424.4 MB, free: 49.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.2817, allocations: 6.594 kB / 424.4 MB, free: 49.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.2817, allocations: 3.562 kB / 424.4 MB, free: 49.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.2818, allocations: 12.89 kB / 424.4 MB, free: 49.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.284, allocations: 1.335 MB / 425.7 MB, free: 49.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.284, allocations: 0 / 425.7 MB, free: 49.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.2843, allocations: 57.98 kB / 425.8 MB, free: 49.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.2843, allocations: 3 kB / 425.8 MB, free: 49.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.2843, allocations: 17.72 kB / 425.8 MB, free: 49.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.2843, allocations: 6.906 kB / 425.8 MB, free: 49.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.2843, allocations: 3.844 kB / 425.8 MB, free: 49.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002014/0.2864, allocations: 0.9465 MB / 426.8 MB, free: 49.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002002/0.2866, allocations: 197.7 kB / 426.9 MB, free: 49.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.567e-05/0.2867, allocations: 10.59 kB / 427 MB, free: 49.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004577/0.2871, allocations: 60.69 kB / 427 MB, free: 49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.2873, allocations: 120.7 kB / 427.1 MB, free: 48.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.545e-05/0.2874, allocations: 17.94 kB / 427.2 MB, free: 48.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003821/0.2878, allocations: 433.3 kB / 427.6 MB, free: 48.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.2878, allocations: 0 / 427.6 MB, free: 48.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004887/0.2883, allocations: 147.7 kB / 427.7 MB, free: 48.77 MB / 350.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.002313/0.2906, allocations: 1.539 MB / 429.3 MB, free: 47.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001542/0.2922, allocations: 0.6447 MB / 429.9 MB, free: 47.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2922, allocations: 3.625 kB / 429.9 MB, free: 47.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006311/0.2928, allocations: 288.4 kB / 430.2 MB, free: 47.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004958/0.2933, allocations: 75.23 kB / 430.3 MB, free: 47.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007525/0.3009, allocations: 5.891 MB / 436.2 MB, free: 44.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.3012, allocations: 0.9419 MB / 437.1 MB, free: 43.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004686/0.3017, allocations: 195.7 kB / 437.3 MB, free: 43.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002842/0.302, allocations: 247 kB / 437.5 MB, free: 43.5 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.302, allocations: 3.312 kB / 437.5 MB, free: 43.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.333, allocations: 13.05 MB / 450.6 MB, free: 42.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/7.986, allocations: 5.031 kB / 450.6 MB, free: 42.38 MB / 350.1 MB (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)