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.007079/0.007079, allocations: 100.9 kB / 15.73 MB, free: 5.988 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.001549/0.001549, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1298/0.1298, allocations: 2.574 MB / 293.1 MB, free: 3.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001988, allocations: 99.86 kB / 404.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.3001, allocations: 50.03 MB / 454.9 MB, free: 21.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004012/0.3042, allocations: 2.998 MB / 457.9 MB, free: 19.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002293/0.3065, allocations: 1.317 MB / 459.2 MB, free: 18.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003027/0.3068, allocations: 13.25 kB / 459.2 MB, free: 18.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.3072, allocations: 97.77 kB / 459.3 MB, free: 18.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001156/0.3084, allocations: 451.5 kB / 459.7 MB, free: 17.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.3087, allocations: 170.5 kB / 459.9 MB, free: 17.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009897/0.3097, allocations: 0.7741 MB / 460.7 MB, free: 17.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004528/0.3102, allocations: 362.7 kB / 461 MB, free: 17.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003153/0.3105, allocations: 322.8 kB / 461.3 MB, free: 16.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.3108, allocations: 335.4 kB / 461.7 MB, free: 16.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.82e-05/0.3109, allocations: 63.19 kB / 461.7 MB, free: 16.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002543/0.3112, allocations: 141.1 kB / 461.9 MB, free: 16.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000206/0.3114, allocations: 233.8 kB / 462.1 MB, free: 16.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002574/0.3117, allocations: 342.9 kB / 462.4 MB, free: 16.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009371/0.3126, allocations: 0.8554 MB / 463.3 MB, free: 16.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3126, allocations: 0 / 463.3 MB, free: 16.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3126, allocations: 0 / 463.3 MB, free: 16.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.723e-05/0.3127, allocations: 3.281 kB / 463.3 MB, free: 16.06 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.002612/0.3153, allocations: 1.173 MB / 464.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3153, allocations: 9.312 kB / 464.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.3154, allocations: 95.48 kB / 464.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/0.3156, allocations: 82.23 kB / 464.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007506/0.3164, allocations: 0.5648 MB / 465.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.3164, allocations: 42.41 kB / 465.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.68e-05/0.3165, allocations: 57.88 kB / 465.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3179, allocations: 0.7222 MB / 466 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.318, allocations: 0 / 466 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.318, allocations: 21.64 kB / 466 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.599e-05/0.3181, allocations: 40.38 kB / 466.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001567/0.3197, allocations: 0.6277 MB / 466.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003717/0.3234, allocations: 2.193 MB / 468.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.325, allocations: 0.5614 MB / 469.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/0.3256, allocations: 258.7 kB / 469.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001505/0.3258, allocations: 181.8 kB / 469.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.3258, allocations: 42.62 kB / 469.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.993e-06/0.3258, allocations: 0 / 469.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002048/0.3279, allocations: 0.7254 MB / 470.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.3279, allocations: 55.53 kB / 470.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007099/0.3286, allocations: 0.6091 MB / 471.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.3287, allocations: 36.23 kB / 471.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001912/0.3289, allocations: 326.2 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.329, allocations: 138 kB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.3292, allocations: 111.8 kB / 471.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.935e-05/0.3293, allocations: 376.1 kB / 472.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/0.3299, allocations: 219.7 kB / 472.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000646/0.3305, allocations: 344.7 kB / 472.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.3317, allocations: 492.8 kB / 473.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.3317, allocations: 4 kB / 473.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001572/0.3333, allocations: 0.6223 MB / 473.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.3333, allocations: 6.031 kB / 474 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.3333, allocations: 5.5 kB / 474 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.3333, allocations: 10.09 kB / 474 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.3337, allocations: 87.14 kB / 474.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.3337, allocations: 6.281 kB / 474.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004582/0.3342, allocations: 78.7 kB / 474.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.3342, allocations: 23.55 kB / 474.2 MB, free: 10.32 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.0003608/0.3346, allocations: 276.6 kB / 474.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.3347, allocations: 70.58 kB / 474.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.3365, allocations: 0.609 MB / 475.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.3365, allocations: 4.812 kB / 475.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.3365, allocations: 0.5625 kB / 475.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3365, allocations: 6.344 kB / 475.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.3393, allocations: 1.34 MB / 476.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3393, allocations: 1.156 kB / 476.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.3396, allocations: 58.58 kB / 476.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.3396, allocations: 3.062 kB / 476.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/0.3396, allocations: 15.12 kB / 476.5 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.3396, allocations: 10.59 kB / 476.5 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3396, allocations: 4 kB / 476.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002191/0.3418, allocations: 0.9638 MB / 477.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002497/0.3421, allocations: 195.4 kB / 477.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.118e-05/0.3422, allocations: 11.22 kB / 477.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004211/0.3426, allocations: 53.23 kB / 477.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002891/0.3429, allocations: 121.2 kB / 477.9 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-05/0.343, allocations: 18.09 kB / 477.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005765/0.3435, allocations: 435.1 kB / 478.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3435, allocations: 4 kB / 478.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006133/0.3442, allocations: 139.3 kB / 478.5 MB, free: 8.32 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.002579/0.3467, allocations: 1.547 MB / 480 MB, free: 7.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.3482, allocations: 0.5317 MB / 480.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3482, allocations: 0 / 480.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006617/0.3489, allocations: 293.4 kB / 480.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.3495, allocations: 62.31 kB / 480.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008958/0.3584, allocations: 5.714 MB / 486.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003979/0.3589, allocations: 0.9478 MB / 487.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004981/0.3594, allocations: 187.3 kB / 487.7 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002935/0.3597, allocations: 251.6 kB / 488 MB, free: 2.488 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3597, allocations: 3.938 kB / 488 MB, free: 2.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.3931, allocations: 13.26 MB / 0.4895 GB, free: 6.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.931/9.324, allocations: 11.73 kB / 0.4895 GB, free: 6.754 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoElectronicCommutator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)