Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.SMPM_NominalOperation.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.001903/0.001903, allocations: 112.7 kB / 18.94 MB, free: 2.93 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.002232/0.002232, allocations: 189.9 kB / 22.23 MB, free: 5.105 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.444/1.444, allocations: 225.6 MB / 251 MB, free: 13.02 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.02168/0.02168, allocations: 2.622 MB / 308.9 MB, free: 6.004 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: translateModel(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation")
translateModel(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002835/0.002835, allocations: 95.84 kB / 430.2 MB, free: 20.7 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.111, allocations: 52.83 MB / 483 MB, free: 15.79 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01801/0.129, allocations: 14.25 MB / 497.2 MB, free: 1.465 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01066/0.1397, allocations: 5.007 MB / 0.4905 GB, free: 12.44 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002769/0.1424, allocations: 111.3 kB / 0.4906 GB, free: 12.33 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.003254/0.1457, allocations: 1.087 MB / 0.4916 GB, free: 11.24 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.004261/0.15, allocations: 1.226 MB / 0.4928 GB, free: 10.01 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002054/0.152, allocations: 0.7947 MB / 0.4936 GB, free: 9.211 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.004745/0.1568, allocations: 3.182 MB / 0.4967 GB, free: 6.02 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.002399/0.1592, allocations: 1.489 MB / 0.4982 GB, free: 4.465 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.00222/0.1614, allocations: 1.402 MB / 0.4995 GB, free: 3.059 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002779/0.1642, allocations: 1.65 MB / 0.5012 GB, free: 1.402 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0007037/0.1649, allocations: 388 kB / 0.5015 GB, free: 1.023 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001599/0.1665, allocations: 0.5779 MB / 0.5021 GB, free: 456 kB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0008917/0.1673, allocations: 0.8764 MB / 0.5029 GB, free: 15.57 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.002316/0.1697, allocations: 1.661 MB / 0.5046 GB, free: 13.9 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.007582/0.1772, allocations: 5.138 MB / 0.5096 GB, free: 8.742 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1773, allocations: 4 kB / 0.5096 GB, free: 8.738 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.893e-06/0.1773, allocations: 0 / 0.5096 GB, free: 8.738 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 0.0001847/0.1774, allocations: 0 / 0.5096 GB, free: 8.738 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 673
 * Number of variables: 673
Notification: Performance of Generate backend data structure: time 0.01064/0.1881, allocations: 3.485 MB / 0.513 GB, free: 5.199 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1881, allocations: 12.03 kB / 0.513 GB, free: 5.188 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00342/0.1915, allocations: 0.565 MB / 0.5136 GB, free: 4.621 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.005285/0.1968, allocations: 1.784 MB / 0.5153 GB, free: 2.793 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.1971, allocations: 197.5 kB / 0.5155 GB, free: 2.598 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009174/0.198, allocations: 260.1 kB / 0.5157 GB, free: 2.344 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.2396/0.4376, allocations: 3.273 MB / 0.5189 GB, free: 41.04 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-05/0.4377, allocations: 5.281 kB / 0.5189 GB, free: 41.04 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002581/0.438, allocations: 106.9 kB / 0.519 GB, free: 41.04 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002234/0.4382, allocations: 118.5 kB / 0.5192 GB, free: 41.04 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00576/0.4439, allocations: 2.723 MB / 0.5218 GB, free: 40.41 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01586/0.4598, allocations: 10.53 MB / 0.5321 GB, free: 34.45 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002923/0.4627, allocations: 1.337 MB / 0.5334 GB, free: 33.93 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.464, allocations: 0.7429 MB / 0.5341 GB, free: 33.61 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.003829/0.4679, allocations: 2.213 MB / 0.5363 GB, free: 32.1 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.4679, allocations: 49.25 kB / 0.5363 GB, free: 32.05 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=81): time 2.424e-06/0.4679, allocations: 0 / 0.5363 GB, free: 32.05 MB / 382.1 MB
Notification: Performance of matching and sorting (n=117): time 0.01059/0.4785, allocations: 5.176 MB / 0.5414 GB, free: 29.3 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.006199/0.4847, allocations: 5.075 MB / 0.5463 GB, free: 25.64 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002262/0.4869, allocations: 1.523 MB / 0.5478 GB, free: 24.82 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.4871, allocations: 45.64 kB / 0.5479 GB, free: 24.77 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0006044/0.4877, allocations: 1.281 MB / 0.5491 GB, free: 23.71 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002564/0.4879, allocations: 425 kB / 0.5495 GB, free: 23.35 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003515/0.4883, allocations: 286.1 kB / 0.5498 GB, free: 23.18 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 3.613e-05/0.4883, allocations: 301.1 kB / 0.5501 GB, free: 22.88 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007585/0.4891, allocations: 0.6095 MB / 0.5507 GB, free: 22.57 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009433/0.49, allocations: 1.147 MB / 0.5518 GB, free: 21.54 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.4919, allocations: 1.895 MB / 0.5537 GB, free: 19.79 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.4919, allocations: 4 kB / 0.5537 GB, free: 19.78 MB / 382.1 MB
Notification: Performance of matching and sorting (n=195) (initialization): time 0.002649/0.4945, allocations: 2.018 MB / 0.5556 GB, free: 17.75 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.4946, allocations: 16 kB / 0.5556 GB, free: 17.73 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.576e-05/0.4946, allocations: 23.59 kB / 0.5557 GB, free: 17.71 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.4948, allocations: 93.62 kB / 0.5558 GB, free: 17.62 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.4961, allocations: 391.4 kB / 0.5561 GB, free: 17.23 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.512e-05/0.4962, allocations: 39.86 kB / 0.5562 GB, free: 17.2 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.4976, allocations: 93.8 kB / 0.5563 GB, free: 17.11 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.4977, allocations: 68 kB / 0.5563 GB, free: 17.04 MB / 382.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 76
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (193):
 * Single equations (assignments): 191
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 2
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 2 systems
   {(2,100.0%), (2,100.0%)}
 * Non-linear Jacobian (size): 0 systems
 * Without analytic Jacobian (size): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.001395/0.4991, allocations: 0.7978 MB / 0.5571 GB, free: 16.23 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003723/0.4995, allocations: 182.8 kB / 0.5573 GB, free: 16.05 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002818/0.5023, allocations: 1.819 MB / 0.559 GB, free: 14.21 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.5023, allocations: 12 kB / 0.5591 GB, free: 14.2 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.5023, allocations: 0 / 0.5591 GB, free: 14.2 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.5024, allocations: 3.984 kB / 0.5591 GB, free: 14.2 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008228/0.5106, allocations: 5.475 MB / 0.5644 GB, free: 8.645 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.5106, allocations: 4 kB / 0.5644 GB, free: 8.641 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007181/0.5113, allocations: 180.1 kB / 0.5646 GB, free: 8.465 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.5124, allocations: 405.8 kB / 0.565 GB, free: 8.062 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.617e-05/0.5125, allocations: 24 kB / 0.565 GB, free: 8.039 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005917/0.5184, allocations: 5.079 MB / 0.57 GB, free: 2.844 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007036/0.5254, allocations: 4.955 MB / 0.5748 GB, free: 13.77 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00515/0.5306, allocations: 2.76 MB / 0.5775 GB, free: 10.95 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.001086/0.5316, allocations: 322.4 kB / 0.5778 GB, free: 10.64 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004516/0.5321, allocations: 28 kB / 0.5778 GB, free: 10.61 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.5332, allocations: 59.94 kB / 0.5779 GB, free: 10.55 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.5334, allocations: 100.7 kB / 0.578 GB, free: 10.46 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.32e-05/0.5335, allocations: 29.31 kB / 0.578 GB, free: 10.43 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.002137/0.5357, allocations: 1.042 MB / 0.579 GB, free: 9.391 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.5357, allocations: 4 kB / 0.579 GB, free: 9.387 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.002342/0.538, allocations: 0.5039 MB / 0.5795 GB, free: 8.883 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 12
 * Number of states: 1 ($STATESET1.x)
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (87):
 * Single equations (assignments): 85
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 1 system
   {(2,100.0%)}
 * Non-linear Jacobian (size): 0 systems
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(3,28)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0004179/0.5384, allocations: 147 kB / 0.5797 GB, free: 8.73 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.003117/0.5415, allocations: 1.497 MB / 0.5811 GB, free: 7.23 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 8.876e-06/0.5415, allocations: 0 / 0.5811 GB, free: 7.23 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001945/0.5435, allocations: 0.9831 MB / 0.5821 GB, free: 6.234 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002518/0.546, allocations: 470.6 kB / 0.5825 GB, free: 5.785 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009903/0.5559, allocations: 4.792 MB / 0.5872 GB, free: 0.9141 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/0.5581, allocations: 1.953 MB / 0.5891 GB, free: 14.92 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 0.001545/0.5597, allocations: 386.8 kB / 0.5895 GB, free: 14.54 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/0.5602, allocations: 123.4 kB / 0.5896 GB, free: 14.42 MB / 414.1 MB
Notification: Performance of SimCode: time 1.443e-06/0.5602, allocations: 0 / 0.5896 GB, free: 14.42 MB / 414.1 MB
Notification: Performance of Templates: time 0.06075/0.6209, allocations: 28.29 MB / 0.6172 GB, free: 2.406 MB / 430.1 MB
"
[Timeout remaining time 659]
make -j1 -f BLDC_BLDC.Examples.SMPM_NominalOperation.makefile [Timeout 660]
(rm -f BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; mkfifo BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; head -c 1048576 < BLDC_BLDC.Examples.SMPM_NominalOperation.pipe >> ../files/BLDC_BLDC.Examples.SMPM_NominalOperation.sim & ./BLDC_BLDC.Examples.SMPM_NominalOperation  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.754968768917024]
Failed to read output from testmodel.py, exit status != 0:
0.6296688094735146 0.6470785769999999 0.46619502700000004
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fb29d4bd7b0>