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.004389/0.004389, allocations: 101.9 kB / 15.73 MB, free: 6.496 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.001579/0.001579, allocations: 198.9 kB / 16.68 MB, free: 6.375 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1189/0.1189, allocations: 2.577 MB / 293.1 MB, free: 3.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001887, allocations: 103.8 kB / 404.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2607, allocations: 50.03 MB / 454.9 MB, free: 21.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003538/0.2642, allocations: 2.993 MB / 457.9 MB, free: 18.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.2661, allocations: 1.314 MB / 459.2 MB, free: 18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002102/0.2663, allocations: 15.91 kB / 459.2 MB, free: 18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003189/0.2666, allocations: 93.55 kB / 459.3 MB, free: 17.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009172/0.2676, allocations: 444.8 kB / 459.7 MB, free: 17.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.2678, allocations: 171.8 kB / 459.9 MB, free: 17.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008362/0.2687, allocations: 0.7768 MB / 460.7 MB, free: 17.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004392/0.2691, allocations: 367.8 kB / 461 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002983/0.2694, allocations: 323.6 kB / 461.3 MB, free: 16.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.2698, allocations: 331.4 kB / 461.7 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.067e-05/0.2698, allocations: 63.69 kB / 461.7 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/0.2701, allocations: 141.4 kB / 461.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001936/0.2703, allocations: 237 kB / 462.1 MB, free: 16.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002564/0.2706, allocations: 342.7 kB / 462.4 MB, free: 16.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009444/0.2715, allocations: 0.8557 MB / 463.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2715, allocations: 3.125 kB / 463.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2715, allocations: 0 / 463.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.2716, allocations: 0 / 463.3 MB, free: 15.97 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.002571/0.2741, allocations: 1.197 MB / 464.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2742, allocations: 9.312 kB / 464.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001172/0.2743, allocations: 97.77 kB / 464.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.2745, allocations: 94.97 kB / 464.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008907/0.2754, allocations: 0.5678 MB / 465.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.11e-05/0.2755, allocations: 38.97 kB / 465.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.567e-05/0.2756, allocations: 54.38 kB / 465.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.2772, allocations: 0.7227 MB / 466.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.2772, allocations: 0 / 466.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.083e-05/0.2773, allocations: 25.64 kB / 466.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-05/0.2774, allocations: 43.73 kB / 466.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.279, allocations: 0.6243 MB / 466.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003889/0.2829, allocations: 2.193 MB / 468.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.2848, allocations: 0.5586 MB / 469.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006787/0.2855, allocations: 254.9 kB / 469.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001381/0.2856, allocations: 189.2 kB / 469.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.2857, allocations: 38.06 kB / 470 MB, free: 12.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.174e-06/0.2857, allocations: 5.375 kB / 470 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002239/0.2879, allocations: 0.7253 MB / 470.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.288, allocations: 56.91 kB / 470.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008656/0.2888, allocations: 0.6125 MB / 471.4 MB, free: 11.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.2889, allocations: 32.45 kB / 471.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.2891, allocations: 329.4 kB / 471.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.2892, allocations: 140.1 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001813/0.2894, allocations: 111.2 kB / 472 MB, free: 11.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.2895, allocations: 375.4 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006282/0.2902, allocations: 225.5 kB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006912/0.2909, allocations: 348 kB / 472.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.2921, allocations: 491.3 kB / 473.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2921, allocations: 1.031 kB / 473.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001686/0.2938, allocations: 0.6256 MB / 474 MB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.2939, allocations: 9.859 kB / 474 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.2939, allocations: 8.375 kB / 474 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.2939, allocations: 5.344 kB / 474 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003579/0.2943, allocations: 88.34 kB / 474.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.608e-05/0.2943, allocations: 10.67 kB / 474.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.2948, allocations: 82.36 kB / 474.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-05/0.2949, allocations: 24.28 kB / 474.2 MB, free: 10.17 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.0003766/0.2953, allocations: 271.8 kB / 474.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.2954, allocations: 67.8 kB / 474.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.2972, allocations: 0.6121 MB / 475.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.2972, allocations: 4.953 kB / 475.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2972, allocations: 0 / 475.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.2972, allocations: 11.55 kB / 475.2 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002749/0.3, allocations: 1.339 MB / 476.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3, allocations: 2.219 kB / 476.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002771/0.3003, allocations: 58.08 kB / 476.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3003, allocations: 2.125 kB / 476.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.1e-05/0.3004, allocations: 20.05 kB / 476.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.3004, allocations: 1.281 kB / 476.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3004, allocations: 2.078 kB / 476.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002221/0.3026, allocations: 0.9623 MB / 477.6 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002473/0.3029, allocations: 201 kB / 477.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.002e-05/0.303, allocations: 13.38 kB / 477.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/0.3034, allocations: 51.62 kB / 477.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002795/0.3037, allocations: 120.9 kB / 478 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.289e-05/0.3038, allocations: 18.48 kB / 478 MB, free: 8.395 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005408/0.3043, allocations: 438.4 kB / 478.4 MB, free: 8.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3043, allocations: 0 / 478.4 MB, free: 8.207 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005816/0.3049, allocations: 147.8 kB / 478.5 MB, free: 8.172 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.002658/0.3076, allocations: 1.554 MB / 480.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.3091, allocations: 0.5316 MB / 480.6 MB, free: 7.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3091, allocations: 1.438 kB / 480.6 MB, free: 7.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007313/0.3098, allocations: 292.3 kB / 480.9 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005317/0.3104, allocations: 68.09 kB / 481 MB, free: 6.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008632/0.319, allocations: 5.739 MB / 486.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.3194, allocations: 0.9446 MB / 487.7 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004693/0.3199, allocations: 190.9 kB / 487.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003203/0.3202, allocations: 251.2 kB / 488.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3203, allocations: 0 / 488.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.3545, allocations: 13.25 MB / 0.4896 GB, free: 6.684 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.024/9.379, allocations: 10.3 kB / 0.4896 GB, free: 6.68 MB / 366.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)