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.000889/0.000889, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001007/0.001007, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 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 0.9401/0.9401, allocations: 177.1 MB / 203.4 MB, free: 5.641 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.01/0.01, allocations: 1.991 MB / 261.9 MB, free: 11.07 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.773e-06/1.773e-06, allocations: 0 / 332.1 MB, free: 17.22 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.51e-05/1.687e-05, allocations: 8.562 kB / 332.1 MB, free: 17.21 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.002699/0.002716, allocations: 3.001 MB / 335.1 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.004107, allocations: 1.328 MB / 336.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.00427, allocations: 15.94 kB / 336.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002574/0.004527, allocations: 111 kB / 336.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007389/0.005266, allocations: 417.8 kB / 337 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001871/0.005453, allocations: 175.8 kB / 337.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006106/0.006064, allocations: 0.7873 MB / 337.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002379/0.006302, allocations: 229.8 kB / 338.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.006597, allocations: 499 kB / 338.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001969/0.006794, allocations: 287.2 kB / 338.9 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.239e-05/0.006847, allocations: 60 kB / 339 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001751/0.007022, allocations: 163.7 kB / 339.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.007145, allocations: 251.2 kB / 339.4 MB, free: 9.895 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.007252, allocations: 207.4 kB / 339.6 MB, free: 9.691 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004413/0.007694, allocations: 0.6421 MB / 340.2 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.007695, allocations: 4 kB / 340.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.007696, allocations: 0 / 340.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.007702, allocations: 0 / 340.3 MB, free: 9.043 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.001445/0.009147, allocations: 1.243 MB / 341.5 MB, free: 7.762 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.009177, allocations: 12.03 kB / 341.5 MB, free: 7.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.00938, allocations: 136.4 kB / 341.6 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.009774, allocations: 0.4968 MB / 342.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.009794, allocations: 37.69 kB / 342.2 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.009844, allocations: 52.38 kB / 342.2 MB, free: 7.004 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005992/0.01044, allocations: 0.6375 MB / 342.9 MB, free: 6.309 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.01046, allocations: 192 / 342.9 MB, free: 6.309 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.01049, allocations: 27.94 kB / 342.9 MB, free: 6.281 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.075e-05/0.01053, allocations: 37.3 kB / 342.9 MB, free: 6.246 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003881/0.01092, allocations: 303.5 kB / 343.2 MB, free: 5.949 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.01255, allocations: 1.895 MB / 345.1 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003619/0.01291, allocations: 243.1 kB / 345.4 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.01305, allocations: 103.7 kB / 345.5 MB, free: 3.625 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.567e-05/0.01312, allocations: 19.98 kB / 345.5 MB, free: 3.605 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.01314, allocations: 45.39 kB / 345.5 MB, free: 3.551 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.01314, allocations: 0 / 345.5 MB, free: 3.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.0005715/0.01372, allocations: 397 kB / 345.9 MB, free: 3.156 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.715e-05/0.01373, allocations: 55.41 kB / 346 MB, free: 3.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003065/0.01404, allocations: 0.5143 MB / 346.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.01406, allocations: 33.7 kB / 346.5 MB, free: 2.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.01419, allocations: 403.5 kB / 346.9 MB, free: 2.121 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.912e-05/0.01424, allocations: 134.9 kB / 347 MB, free: 1.988 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.647e-05/0.01434, allocations: 123.8 kB / 347.2 MB, free: 1.859 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.529e-05/0.01442, allocations: 0.5469 MB / 347.7 MB, free: 1.301 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.01455, allocations: 76.94 kB / 347.8 MB, free: 1.227 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.01472, allocations: 279.2 kB / 348.1 MB, free: 0.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.01502, allocations: 350.6 kB / 348.4 MB, free: 464 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.01502, allocations: 3.938 kB / 348.4 MB, free: 460 kB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004573/0.01548, allocations: 416.8 kB / 348.8 MB, free: 36 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.01549, allocations: 11.12 kB / 348.8 MB, free: 28 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.0155, allocations: 7.938 kB / 348.8 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.01552, allocations: 4 kB / 348.8 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.0157, allocations: 91.92 kB / 348.9 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.01571, allocations: 8 kB / 348.9 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.01591, allocations: 64.17 kB / 349 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.01595, allocations: 31.98 kB / 349 MB, free: 15.82 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.0001406/0.01609, allocations: 198.4 kB / 349.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.427e-05/0.01618, allocations: 71.62 kB / 349.3 MB, free: 15.55 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005356/0.01672, allocations: 391 kB / 349.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.01672, allocations: 4 kB / 349.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.01673, allocations: 0 / 349.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.01673, allocations: 3.984 kB / 349.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.01775, allocations: 0.9316 MB / 350.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.01776, allocations: 0 / 350.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.0179, allocations: 59.84 kB / 350.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.0179, allocations: 4 kB / 350.7 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.01793, allocations: 15.98 kB / 350.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.01793, allocations: 7.938 kB / 350.7 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.01794, allocations: 0 / 350.7 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007145/0.01865, allocations: 0.5528 MB / 351.2 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.01876, allocations: 107.4 kB / 351.3 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.0188, allocations: 8 kB / 351.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001938/0.01899, allocations: 43.94 kB / 351.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.01917, allocations: 139.8 kB / 351.5 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.01919, allocations: 19.98 kB / 351.6 MB, free: 13.2 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001973/0.01939, allocations: 318.8 kB / 351.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01939, allocations: 0 / 351.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002934/0.01968, allocations: 163.6 kB / 352 MB, free: 12.73 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.0001823/0.01986, allocations: 148.9 kB / 352.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004046/0.02027, allocations: 281.8 kB / 352.4 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-06/0.02027, allocations: 4.125 kB / 352.4 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.02045, allocations: 147.5 kB / 352.6 MB, free: 12.15 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.02074, allocations: 81.94 kB / 352.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.02209, allocations: 1.03 MB / 353.7 MB, free: 11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.792e-05/0.02218, allocations: 170.6 kB / 353.9 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002286/0.02241, allocations: 148.1 kB / 354 MB, free: 10.67 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.915e-05/0.02251, allocations: 60.48 kB / 354.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of SimCode: time 6.92e-07/0.02251, allocations: 0 / 354.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of Templates: time 0.009173/0.03168, allocations: 7.27 MB / 361.3 MB, free: 3.418 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.1377644459716976]