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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 105.8 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] 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.01384/0.01384, allocations: 2.62 MB / 305.3 MB, free: 7.168 MB / 238.1 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002728/0.002728, allocations: 103.8 kB / 424.5 MB, free: 22.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08548/0.08821, allocations: 52.77 MB / 477.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004459/0.09267, allocations: 3.023 MB / 480.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002255/0.09492, allocations: 1.329 MB / 481.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.09512, allocations: 15.94 kB / 481.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000333/0.09545, allocations: 99.16 kB / 481.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001108/0.09656, allocations: 445.8 kB / 482.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003278/0.09689, allocations: 167.8 kB / 482.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.09792, allocations: 0.772 MB / 483.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004236/0.09835, allocations: 277.4 kB / 483.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003744/0.09872, allocations: 322.9 kB / 483.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004109/0.09913, allocations: 346.6 kB / 484 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.943e-05/0.09922, allocations: 63.94 kB / 484.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002694/0.09949, allocations: 147.9 kB / 484.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000236/0.09973, allocations: 235.2 kB / 484.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000305/0.1, allocations: 342 kB / 484.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009876/0.101, allocations: 0.852 MB / 485.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.101, allocations: 0 / 485.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.101, allocations: 0 / 485.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.101, allocations: 4 kB / 485.6 MB, free: 9.383 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.002618/0.1037, allocations: 1.192 MB / 486.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.1037, allocations: 11.97 kB / 486.8 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001247/0.1038, allocations: 102.7 kB / 486.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.104, allocations: 92.38 kB / 487 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009215/0.1049, allocations: 0.5643 MB / 487.6 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.105, allocations: 41.69 kB / 487.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-05/0.1051, allocations: 52.12 kB / 487.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.1065, allocations: 0.7261 MB / 488.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.1065, allocations: 0 / 488.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.666e-05/0.1066, allocations: 23.98 kB / 488.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-05/0.1066, allocations: 37.3 kB / 488.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.1082, allocations: 0.6257 MB / 489.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003897/0.1121, allocations: 2.203 MB / 491.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.1137, allocations: 0.5298 MB / 491.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006395/0.1144, allocations: 248.7 kB / 492.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001856/0.1146, allocations: 178.1 kB / 492.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.1146, allocations: 39.28 kB / 492.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.014e-06/0.1146, allocations: 4 kB / 492.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002093/0.1167, allocations: 0.7272 MB / 493 MB, free: 1.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.1167, allocations: 55.41 kB / 493.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007661/0.1175, allocations: 0.6124 MB / 493.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.1176, allocations: 37.7 kB / 493.7 MB, free: 1.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.1178, allocations: 328.4 kB / 494 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.118, allocations: 138.8 kB / 494.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.1181, allocations: 114.2 kB / 494.3 MB, free: 440 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1183, allocations: 374.8 kB / 494.7 MB, free: 56 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006279/0.119, allocations: 217 kB / 494.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007209/0.1197, allocations: 355.1 kB / 495.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.1209, allocations: 482.6 kB / 495.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.1209, allocations: 4 kB / 495.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001557/0.1225, allocations: 0.6238 MB / 496.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.1225, allocations: 12 kB / 496.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1225, allocations: 4.109 kB / 496.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.833e-05/0.1225, allocations: 11.94 kB / 496.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003199/0.1228, allocations: 83.88 kB / 496.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.1229, allocations: 11.94 kB / 496.4 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004232/0.1233, allocations: 83.47 kB / 496.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.784e-05/0.1233, allocations: 23.98 kB / 496.5 MB, free: 14.07 MB / 366.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.0003474/0.1237, allocations: 271.9 kB / 496.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.1238, allocations: 67.56 kB / 496.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.1255, allocations: 0.6126 MB / 497.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.1255, allocations: 12 kB / 497.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1255, allocations: 0 / 497.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.1255, allocations: 3.984 kB / 497.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002694/0.1282, allocations: 1.342 MB / 498.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/0.1282, allocations: 0 / 498.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.1285, allocations: 59.91 kB / 498.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1285, allocations: 0 / 498.9 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.1285, allocations: 19.98 kB / 498.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.1285, allocations: 0 / 498.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1285, allocations: 4 kB / 498.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002197/0.1307, allocations: 0.9626 MB / 499.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003262/0.131, allocations: 196.6 kB / 0.4884 GB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.49e-05/0.1311, allocations: 11.98 kB / 0.4884 GB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004344/0.1315, allocations: 59.92 kB / 0.4884 GB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000269/0.1318, allocations: 115.8 kB / 0.4885 GB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-05/0.1319, allocations: 24.05 kB / 0.4886 GB, free: 10.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005667/0.1324, allocations: 434.8 kB / 0.489 GB, free: 9.789 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1324, allocations: 0 / 0.489 GB, free: 9.789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005437/0.133, allocations: 143.7 kB / 0.4891 GB, free: 9.648 MB / 366.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.002704/0.1357, allocations: 1.547 MB / 0.4906 GB, free: 8.074 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.1372, allocations: 0.5223 MB / 0.4911 GB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.1372, allocations: 7.938 kB / 0.4911 GB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007021/0.1379, allocations: 272.8 kB / 0.4914 GB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005085/0.1384, allocations: 65.95 kB / 0.4915 GB, free: 7.211 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009544/0.1479, allocations: 5.748 MB / 0.4971 GB, free: 1.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006524/0.1486, allocations: 0.9537 MB / 0.498 GB, free: 312 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004985/0.1491, allocations: 192.5 kB / 0.4982 GB, free: 116 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003764/0.1494, allocations: 243.4 kB / 0.4984 GB, free: 15.87 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1494, allocations: 0 / 0.4984 GB, free: 15.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.1907, allocations: 13.31 MB / 0.5114 GB, free: 2.637 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.03/9.221, allocations: 11.75 kB / 0.5114 GB, free: 2.629 MB / 382.1 MB " [Timeout remaining time 651] (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: 13.596457805018872] Failed to read output from testmodel.py, exit status != 0: 9.295917457900941 9.516002398 9.412608371 Calling exit ...