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: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 108.6 kB / 16.41 MB, free: 6.465 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.001925/0.001925, allocations: 192.1 kB / 17.34 MB, free: 5.719 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01296/0.01296, allocations: 2.59 MB / 293.8 MB, free: 12.17 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 91.86 kB / 406 MB, free: 29.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08129/0.0832, allocations: 50.04 MB / 456 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004274/0.08751, allocations: 3 MB / 459 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.08992, allocations: 1.317 MB / 460.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003589/0.09031, allocations: 15.94 kB / 460.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004088/0.09075, allocations: 91.17 kB / 460.5 MB, free: 7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00133/0.09209, allocations: 437.9 kB / 460.9 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004094/0.09251, allocations: 179.7 kB / 461.1 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.0937, allocations: 0.772 MB / 461.8 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005337/0.09424, allocations: 361.3 kB / 462.2 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004477/0.0947, allocations: 326.9 kB / 462.5 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000479/0.09519, allocations: 338.6 kB / 462.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.09535, allocations: 64 kB / 462.9 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003328/0.09569, allocations: 143.9 kB / 463 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002405/0.09594, allocations: 231.3 kB / 463.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003639/0.09632, allocations: 338 kB / 463.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.09738, allocations: 0.8448 MB / 464.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.0974, allocations: 0 / 464.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.09741, allocations: 0 / 464.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.425e-05/0.09744, allocations: 7.938 kB / 464.4 MB, free: 2.984 MB / 334.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.003213/0.1007, allocations: 1.181 MB / 465.6 MB, free: 1.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1007, allocations: 12.03 kB / 465.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.101, allocations: 84 kB / 465.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.1021, allocations: 0.556 MB / 466.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.1021, allocations: 41.67 kB / 466.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.905e-05/0.1022, allocations: 52.38 kB / 466.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.1038, allocations: 0.7261 MB / 467.1 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.1038, allocations: 0 / 467.1 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.151e-05/0.1039, allocations: 20 kB / 467.1 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.729e-05/0.104, allocations: 45.3 kB / 467.2 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.1056, allocations: 0.6257 MB / 467.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.1097, allocations: 2.195 MB / 470 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001769/0.1115, allocations: 0.5572 MB / 470.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006568/0.1122, allocations: 260.7 kB / 470.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002241/0.1124, allocations: 182.1 kB / 471 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.1124, allocations: 39.28 kB / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.665e-06/0.1124, allocations: 0 / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002216/0.1147, allocations: 0.723 MB / 471.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.299e-05/0.1147, allocations: 55.41 kB / 471.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000798/0.1155, allocations: 0.6083 MB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.627e-05/0.1156, allocations: 37.7 kB / 472.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002646/0.1159, allocations: 327.8 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.116, allocations: 134.1 kB / 472.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.1162, allocations: 114.2 kB / 473 MB, free: 10.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.1164, allocations: 370.9 kB / 473.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006258/0.117, allocations: 224.9 kB / 473.6 MB, free: 9.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007172/0.1177, allocations: 347.1 kB / 473.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.119, allocations: 490.6 kB / 474.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1191, allocations: 0 / 474.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001643/0.1207, allocations: 0.6232 MB / 475 MB, free: 8.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.1207, allocations: 4 kB / 475 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.1208, allocations: 4 kB / 475 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.1208, allocations: 11.94 kB / 475 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.1211, allocations: 83.88 kB / 475.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.1212, allocations: 11.94 kB / 475.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005114/0.1217, allocations: 87.67 kB / 475.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.465e-05/0.1218, allocations: 27.92 kB / 475.2 MB, free: 7.781 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.0003734/0.1221, allocations: 267.9 kB / 475.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.1223, allocations: 63.19 kB / 475.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.1241, allocations: 0.6165 MB / 476.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/0.1241, allocations: 7.984 kB / 476.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1241, allocations: 0 / 476.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.1241, allocations: 3.984 kB / 476.2 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.1269, allocations: 1.346 MB / 477.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.127, allocations: 0 / 477.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002642/0.1272, allocations: 55.91 kB / 477.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.816e-06/0.1272, allocations: 4 kB / 477.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.1273, allocations: 15.98 kB / 477.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.1273, allocations: 4 kB / 477.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1273, allocations: 4 kB / 477.6 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.1296, allocations: 0.9507 MB / 478.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/0.13, allocations: 196.3 kB / 478.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.1301, allocations: 4 kB / 478.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005028/0.1306, allocations: 67.97 kB / 478.8 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/0.1309, allocations: 119.8 kB / 479 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.646e-05/0.131, allocations: 19.98 kB / 479 MB, free: 3.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005897/0.1316, allocations: 430.8 kB / 479.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.1316, allocations: 0 / 479.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006004/0.1322, allocations: 155.5 kB / 479.5 MB, free: 3.371 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.0002717/0.1324, allocations: 157.4 kB / 479.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.134, allocations: 0.5348 MB / 480.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.134, allocations: 0 / 480.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009284/0.135, allocations: 287.4 kB / 480.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005307/0.1355, allocations: 70.59 kB / 480.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.138, allocations: 1.278 MB / 481.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005989/0.1386, allocations: 0.9459 MB / 482.8 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.1389, allocations: 67.45 kB / 482.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of SimCode: time 1.133e-06/0.1389, allocations: 3.938 kB / 482.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of Templates: time 0.01381/0.1527, allocations: 9.212 MB / 492.1 MB, free: 6.766 MB / 366.1 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile (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 & ./BLDC_BLDC.Examples.DemoElectronicCommutator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)