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.0009451/0.0009451, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.000851/0.000851, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.9047/0.9047, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.00808/0.00808, allocations: 1.986 MB / 261.2 MB, free: 11.28 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: "" <> 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 384.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/1.987e-05, allocations: 6.281 kB / 384.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003012/0.003032, allocations: 2.836 MB / 387.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.004835, allocations: 1.309 MB / 388.4 MB, free: 9.383 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002237/0.005059, allocations: 15.88 kB / 388.4 MB, free: 9.367 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002885/0.005348, allocations: 91.17 kB / 388.5 MB, free: 9.277 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009517/0.006299, allocations: 413.8 kB / 388.9 MB, free: 8.871 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.006537, allocations: 175.8 kB / 389.1 MB, free: 8.699 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008049/0.007342, allocations: 0.8028 MB / 389.9 MB, free: 7.891 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002974/0.00764, allocations: 221.9 kB / 390.1 MB, free: 7.668 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003694/0.008009, allocations: 439.1 kB / 390.5 MB, free: 7.238 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.008267, allocations: 295.2 kB / 390.8 MB, free: 6.949 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.471e-05/0.008332, allocations: 67.94 kB / 390.9 MB, free: 6.883 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002243/0.008556, allocations: 163.8 kB / 391 MB, free: 6.723 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.008716, allocations: 243.2 kB / 391.3 MB, free: 6.484 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.008861, allocations: 211.4 kB / 391.5 MB, free: 6.277 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007398/0.009601, allocations: 0.8917 MB / 392.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.009603, allocations: 0 / 392.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.009604, allocations: 0 / 392.4 MB, free: 5.383 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.009616, allocations: 4 kB / 392.4 MB, free: 5.379 MB / 362.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.001812/0.01143, allocations: 1.143 MB / 393.5 MB, free: 4.203 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.01147, allocations: 11.97 kB / 393.5 MB, free: 4.191 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.786e-05/0.01155, allocations: 102.7 kB / 393.6 MB, free: 4.082 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.01173, allocations: 88.41 kB / 393.7 MB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005722/0.0123, allocations: 0.5018 MB / 394.2 MB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.01233, allocations: 41.62 kB / 394.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.167e-05/0.01239, allocations: 60.36 kB / 394.3 MB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009358/0.01333, allocations: 0.8483 MB / 395.2 MB, free: 2.469 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.01334, allocations: 3.938 kB / 395.2 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.692e-05/0.01338, allocations: 24 kB / 395.2 MB, free: 2.441 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.934e-05/0.01342, allocations: 33.3 kB / 395.2 MB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009428/0.01436, allocations: 0.6335 MB / 395.9 MB, free: 1.777 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.01671, allocations: 1.997 MB / 397.9 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009999/0.01771, allocations: 0.5305 MB / 398.4 MB, free: 15.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000373/0.01809, allocations: 248.7 kB / 398.6 MB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001057/0.01819, allocations: 15.98 kB / 398.7 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.905e-05/0.01827, allocations: 43.27 kB / 398.7 MB, free: 14.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 1.563e-06/0.01827, allocations: 0 / 398.7 MB, free: 14.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001279/0.01955, allocations: 0.735 MB / 399.4 MB, free: 14.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.01958, allocations: 59.41 kB / 399.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005608/0.02014, allocations: 0.6162 MB / 400.1 MB, free: 13.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.02018, allocations: 37.7 kB / 400.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.02037, allocations: 328.4 kB / 400.5 MB, free: 13.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.455e-05/0.02046, allocations: 138.8 kB / 400.6 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.02059, allocations: 114.1 kB / 400.7 MB, free: 12.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.02073, allocations: 378.8 kB / 401.1 MB, free: 12.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003834/0.02111, allocations: 216.8 kB / 401.3 MB, free: 12.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006323/0.02175, allocations: 350.5 kB / 401.6 MB, free: 11.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007713/0.02252, allocations: 494.4 kB / 402.1 MB, free: 11.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.02252, allocations: 3.938 kB / 402.1 MB, free: 11.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009945/0.02352, allocations: 0.6161 MB / 402.7 MB, free: 10.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.02354, allocations: 11.94 kB / 402.8 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.02355, allocations: 4 kB / 402.8 MB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.02357, allocations: 11.98 kB / 402.8 MB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.02375, allocations: 83.83 kB / 402.9 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.02376, allocations: 11.94 kB / 402.9 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.024, allocations: 83.53 kB / 402.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/0.02404, allocations: 23.98 kB / 403 MB, free: 10.43 MB / 378.7 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.0002409/0.02428, allocations: 275.5 kB / 403.2 MB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.76e-05/0.02437, allocations: 63.58 kB / 403.3 MB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009687/0.02534, allocations: 0.6126 MB / 403.9 MB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.02535, allocations: 11.98 kB / 403.9 MB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.02536, allocations: 0 / 403.9 MB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.02537, allocations: 112 / 403.9 MB, free: 9.453 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.02729, allocations: 1.251 MB / 405.2 MB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.02729, allocations: 0 / 405.2 MB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.02743, allocations: 55.91 kB / 405.2 MB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.02743, allocations: 4 kB / 405.2 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.652e-05/0.02746, allocations: 19.98 kB / 405.3 MB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.02746, allocations: 4 kB / 405.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.02746, allocations: 0 / 405.3 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.02875, allocations: 0.963 MB / 406.2 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.0289, allocations: 123.5 kB / 406.3 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.02894, allocations: 4 kB / 406.3 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.02916, allocations: 63.98 kB / 406.4 MB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.02934, allocations: 119.8 kB / 406.5 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.02936, allocations: 19.98 kB / 406.5 MB, free: 6.762 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003246/0.02969, allocations: 434.7 kB / 407 MB, free: 6.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02969, allocations: 0 / 407 MB, free: 6.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003715/0.03006, allocations: 151.7 kB / 407.1 MB, free: 6.191 MB / 378.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 (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.001585/0.03165, allocations: 1.559 MB / 408.7 MB, free: 4.605 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008322/0.03248, allocations: 0.5209 MB / 409.2 MB, free: 4.086 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.03248, allocations: 0 / 409.2 MB, free: 4.086 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003815/0.03286, allocations: 279.4 kB / 409.5 MB, free: 3.812 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.03319, allocations: 67.23 kB / 409.5 MB, free: 3.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006179/0.03937, allocations: 5.724 MB / 415.3 MB, free: 13.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.03961, allocations: 355.2 kB / 415.6 MB, free: 13.47 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002972/0.03991, allocations: 196.5 kB / 415.8 MB, free: 13.28 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002438/0.04016, allocations: 248.4 kB / 416 MB, free: 13.04 MB / 394.7 MB Notification: Performance of SimCode: time 7.52e-07/0.04016, allocations: 0 / 416 MB, free: 13.04 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03284/0.073, allocations: 14.4 MB / 430.4 MB, free: 14.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/7.789, allocations: 9.641 kB / 430.4 MB, free: 14.82 MB / 410.7 MB " [Timeout remaining time 652] (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 --stepSize=1.00001e-05 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.471041114069521] Failed to read output from testmodel.py, exit status != 0: 7.874521590769291 7.8835368070000005 7.872116237 Calling exit ...