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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009425/0.0009425, allocations: 77.88 kB / 20.66 MB, free: 3.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 165 kB / 24.06 MB, free: 464 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.055/1.055, allocations: 177.1 MB / 204.5 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.008319/0.008319, allocations: 1.99 MB / 263 MB, free: 10.92 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 333.4 MB, free: 16.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.429e-05/3.627e-05, allocations: 2.312 kB / 333.4 MB, free: 16.92 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.0049/0.004936, allocations: 2.962 MB / 336.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.007037, allocations: 1.328 MB / 337.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003966/0.007434, allocations: 23.88 kB / 337.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003328/0.007766, allocations: 95.11 kB / 337.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00113/0.008897, allocations: 413.7 kB / 338.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.009183, allocations: 183.7 kB / 338.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008911/0.01007, allocations: 0.7834 MB / 339.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003464/0.01042, allocations: 229.8 kB / 339.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005449/0.01097, allocations: 495.1 kB / 339.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002852/0.01125, allocations: 291.2 kB / 340.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.35e-05/0.01131, allocations: 60 kB / 340.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002848/0.0116, allocations: 159.8 kB / 340.3 MB, free: 9.898 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.01177, allocations: 247.2 kB / 340.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.0119, allocations: 199.5 kB / 340.8 MB, free: 9.461 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007119/0.01262, allocations: 0.6459 MB / 341.4 MB, free: 8.812 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.01262, allocations: 4 kB / 341.4 MB, free: 8.809 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.01262, allocations: 0 / 341.4 MB, free: 8.809 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.01263, allocations: 0 / 341.4 MB, free: 8.809 MB / 266.7 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.001855/0.01449, allocations: 1.216 MB / 342.6 MB, free: 7.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.01453, allocations: 8.031 kB / 342.6 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000307/0.01484, allocations: 136.4 kB / 342.8 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.01535, allocations: 0.4928 MB / 343.3 MB, free: 6.891 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.01538, allocations: 37.69 kB / 343.3 MB, free: 6.855 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.868e-05/0.01544, allocations: 52.38 kB / 343.4 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006245/0.01606, allocations: 0.5906 MB / 344 MB, free: 6.156 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.01608, allocations: 8.125 kB / 344 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.01612, allocations: 27.92 kB / 344 MB, free: 6.121 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.956e-05/0.01617, allocations: 33.3 kB / 344 MB, free: 6.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003201/0.01649, allocations: 230.2 kB / 344.2 MB, free: 5.863 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.01849, allocations: 1.875 MB / 346.1 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003639/0.01886, allocations: 211.2 kB / 346.3 MB, free: 3.695 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.01896, allocations: 79.64 kB / 346.4 MB, free: 3.613 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.01906, allocations: 27.98 kB / 346.4 MB, free: 3.586 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.01909, allocations: 41.39 kB / 346.5 MB, free: 3.535 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 2.524e-06/0.01909, allocations: 0 / 346.5 MB, free: 3.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.0005809/0.01968, allocations: 341.1 kB / 346.8 MB, free: 3.195 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.0197, allocations: 59.39 kB / 346.9 MB, free: 3.125 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.01998, allocations: 0.514 MB / 347.4 MB, free: 2.594 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.02001, allocations: 33.7 kB / 347.4 MB, free: 2.555 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.02015, allocations: 411.4 kB / 347.8 MB, free: 2.148 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.423e-05/0.02021, allocations: 134.9 kB / 347.9 MB, free: 2.016 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.02032, allocations: 127.7 kB / 348.1 MB, free: 1.883 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.698e-05/0.02041, allocations: 0.5507 MB / 348.6 MB, free: 1.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.02051, allocations: 64.95 kB / 348.7 MB, free: 1.258 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.02065, allocations: 243.3 kB / 348.9 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.0209, allocations: 330.3 kB / 349.2 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.0209, allocations: 0 / 349.2 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000449/0.02135, allocations: 384.6 kB / 349.6 MB, free: 160 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.02137, allocations: 8 kB / 349.6 MB, free: 152 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.02138, allocations: 7.938 kB / 349.6 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.02139, allocations: 8 kB / 349.6 MB, free: 136 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.02156, allocations: 83.83 kB / 349.7 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.02156, allocations: 4.531 kB / 349.7 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.0218, allocations: 63.77 kB / 349.8 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.02184, allocations: 23.92 kB / 349.8 MB, free: 15.96 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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.0001756/0.02201, allocations: 194.4 kB / 350 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.02214, allocations: 75.61 kB / 350.1 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004967/0.02264, allocations: 355.1 kB / 350.4 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.02265, allocations: 8 kB / 350.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.02265, allocations: 0 / 350.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.02266, allocations: 3.984 kB / 350.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009817/0.02364, allocations: 0.7915 MB / 351.2 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.02364, allocations: 0 / 351.2 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.02378, allocations: 55.91 kB / 351.3 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.02379, allocations: 7.938 kB / 351.3 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.02381, allocations: 11.98 kB / 351.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.02381, allocations: 4 kB / 351.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.02381, allocations: 0 / 351.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006281/0.02444, allocations: 0.5098 MB / 351.8 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001303/0.02457, allocations: 99.44 kB / 351.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.212e-05/0.02461, allocations: 7.938 kB / 351.9 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.02481, allocations: 31.97 kB / 352 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.02493, allocations: 75.88 kB / 352 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.02495, allocations: 15.98 kB / 352 MB, free: 13.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001726/0.02512, allocations: 298.7 kB / 352.3 MB, free: 13.37 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.02512, allocations: 4.031 kB / 352.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004093/0.02553, allocations: 159.5 kB / 352.5 MB, free: 13.21 MB / 282.7 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 (43): * Single equations (assignments): 42 * 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.0002337/0.02576, allocations: 157 kB / 352.6 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003749/0.02614, allocations: 257.7 kB / 352.9 MB, free: 12.79 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.02614, allocations: 0 / 352.9 MB, free: 12.79 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.02631, allocations: 131.5 kB / 353 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.02664, allocations: 73.03 kB / 353.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.028, allocations: 1.027 MB / 354.1 MB, free: 11.53 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.02811, allocations: 166.6 kB / 354.3 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.0283, allocations: 84.28 kB / 354.4 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.02852, allocations: 178.1 kB / 354.5 MB, free: 11.09 MB / 282.7 MB Notification: Performance of SimCode: time 1.122e-06/0.02852, allocations: 0 / 354.5 MB, free: 11.09 MB / 282.7 MB Notification: Performance of Templates: time 0.01159/0.04011, allocations: 7.353 MB / 361.9 MB, free: 3.824 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile [Timeout 660] (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=240 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1409342819824815]