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.001348/0.001349, allocations: 108 kB / 15.61 MB, free: 152 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.001317/0.001317, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.313/1.313, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1313/0.1313, allocations: 2.574 MB / 293 MB, free: 3.527 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 99.83 kB / 354.2 MB, free: 4.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07919/0.0811, allocations: 50.03 MB / 404.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004134/0.08527, allocations: 3.001 MB / 407.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.08748, allocations: 1.309 MB / 408.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003362/0.08784, allocations: 11.94 kB / 408.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003559/0.08821, allocations: 107.1 kB / 408.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.08963, allocations: 429.9 kB / 409 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.09001, allocations: 179.8 kB / 409.2 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001005/0.09102, allocations: 0.7799 MB / 410 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004819/0.09152, allocations: 361.6 kB / 410.3 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003858/0.09191, allocations: 311 kB / 410.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004232/0.09234, allocations: 346.6 kB / 411 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.09247, allocations: 60 kB / 411 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002858/0.09276, allocations: 147.9 kB / 411.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001915/0.09296, allocations: 223.3 kB / 411.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003102/0.09328, allocations: 330.1 kB / 411.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000805/0.09409, allocations: 0.8216 MB / 412.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.0941, allocations: 0 / 412.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09411, allocations: 0 / 412.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.09414, allocations: 4 kB / 412.5 MB, free: 10.32 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.002715/0.09686, allocations: 1.173 MB / 413.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.09691, allocations: 12.03 kB / 413.7 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.09705, allocations: 102.7 kB / 413.8 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.09729, allocations: 84 kB / 413.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008022/0.0981, allocations: 0.5404 MB / 414.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.09815, allocations: 49.55 kB / 414.5 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.895e-05/0.09825, allocations: 52.12 kB / 414.6 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.09967, allocations: 0.7184 MB / 415.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.0997, allocations: 0 / 415.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.09977, allocations: 28 kB / 415.3 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.412e-05/0.09983, allocations: 37.3 kB / 415.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.1015, allocations: 0.6257 MB / 416 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003804/0.1053, allocations: 2.21 MB / 418.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.107, allocations: 0.5535 MB / 418.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006412/0.1076, allocations: 260.7 kB / 419 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.1078, allocations: 178.1 kB / 419.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.1079, allocations: 46.48 kB / 419.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 4.078e-06/0.1079, allocations: 4 kB / 419.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002129/0.11, allocations: 0.7275 MB / 419.9 MB, free: 2.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.1101, allocations: 55.41 kB / 420 MB, free: 2.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006657/0.1107, allocations: 0.6122 MB / 420.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.949e-05/0.1108, allocations: 33.7 kB / 420.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.111, allocations: 323.8 kB / 420.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.1111, allocations: 134.1 kB / 421.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.1113, allocations: 114.2 kB / 421.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1114, allocations: 370.8 kB / 421.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006395/0.1121, allocations: 225 kB / 421.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007029/0.1128, allocations: 339.1 kB / 422.1 MB, free: 424 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.164/0.2768, allocations: 0.4908 MB / 422.6 MB, free: 50.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.2769, allocations: 0 / 422.6 MB, free: 50.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002049/0.2789, allocations: 0.618 MB / 423.2 MB, free: 50.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.279, allocations: 11.06 kB / 423.2 MB, free: 50.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.279, allocations: 3.812 kB / 423.2 MB, free: 50.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.71e-05/0.279, allocations: 6.094 kB / 423.2 MB, free: 50.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003649/0.2794, allocations: 85.5 kB / 423.3 MB, free: 50.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.2794, allocations: 10.8 kB / 423.3 MB, free: 50.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005524/0.28, allocations: 79.94 kB / 423.4 MB, free: 50.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-05/0.2801, allocations: 24.69 kB / 423.4 MB, free: 50.09 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.0003565/0.2804, allocations: 269.7 kB / 423.7 MB, free: 49.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002101/0.2806, allocations: 62.88 kB / 423.8 MB, free: 49.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.2823, allocations: 0.6203 MB / 424.4 MB, free: 49.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.2823, allocations: 3.406 kB / 424.4 MB, free: 49.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.2823, allocations: 0.875 kB / 424.4 MB, free: 49.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.485e-06/0.2823, allocations: 8.828 kB / 424.4 MB, free: 49.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.2849, allocations: 1.336 MB / 425.7 MB, free: 49.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2849, allocations: 0 / 425.7 MB, free: 49.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.2851, allocations: 62.52 kB / 425.8 MB, free: 49.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.2852, allocations: 0 / 425.8 MB, free: 49.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.835e-05/0.2852, allocations: 17.53 kB / 425.8 MB, free: 49.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2852, allocations: 3.938 kB / 425.8 MB, free: 49.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2852, allocations: 3.719 kB / 425.8 MB, free: 49.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.2873, allocations: 0.9547 MB / 426.8 MB, free: 49.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.2876, allocations: 197.2 kB / 427 MB, free: 49.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.952e-05/0.2877, allocations: 8 kB / 427 MB, free: 49.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004767/0.2882, allocations: 58.22 kB / 427 MB, free: 49.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.2884, allocations: 121.4 kB / 427.1 MB, free: 49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.829e-05/0.2884, allocations: 21.66 kB / 427.2 MB, free: 48.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004345/0.2889, allocations: 433.1 kB / 427.6 MB, free: 48.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2889, allocations: 0.6562 kB / 427.6 MB, free: 48.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005478/0.2894, allocations: 150.1 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.00239/0.2918, allocations: 1.545 MB / 429.3 MB, free: 47.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.2934, allocations: 0.6433 MB / 429.9 MB, free: 47.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2935, allocations: 0.5625 kB / 429.9 MB, free: 47.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006542/0.2941, allocations: 287.5 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.0005049/0.2946, allocations: 67.98 kB / 430.3 MB, free: 47.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00814/0.3028, allocations: 5.893 MB / 436.2 MB, free: 44.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.3032, allocations: 0.9487 MB / 437.1 MB, free: 43.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004567/0.3037, allocations: 197.4 kB / 437.3 MB, free: 43.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.3039, allocations: 245.4 kB / 437.5 MB, free: 43.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.304, allocations: 3.375 kB / 437.5 MB, free: 43.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03073/0.3347, allocations: 13.05 MB / 450.6 MB, free: 42.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.189/7.524, allocations: 8.094 kB / 450.6 MB, free: 42.36 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 & /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)