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.001391/0.001391, allocations: 111 kB / 16.46 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.00139/0.00139, allocations: 195.8 kB / 19.41 MB, free: 3.668 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.37/1.37, allocations: 225.6 MB / 247.8 MB, free: 13.9 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.01397/0.01397, allocations: 2.625 MB / 305.3 MB, free: 7.137 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.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002725/0.002725, allocations: 99.83 kB / 424.5 MB, free: 22.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1169, allocations: 52.77 MB / 477.2 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.0177/0.1346, allocations: 14.2 MB / 491.5 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.1448, allocations: 4.996 MB / 496.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002555/0.1473, allocations: 91.62 kB / 496.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003619/0.151, allocations: 1.091 MB / 497.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004754/0.1557, allocations: 1.21 MB / 498.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00266/0.1584, allocations: 0.7831 MB / 499.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005709/0.1641, allocations: 3.174 MB / 0.491 GB, free: 8.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003878/0.168, allocations: 1.851 MB / 0.4928 GB, free: 6.203 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002512/0.1705, allocations: 1.378 MB / 0.4942 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003078/0.1736, allocations: 1.642 MB / 0.4958 GB, free: 3.172 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001139/0.1747, allocations: 388 kB / 0.4961 GB, free: 2.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001865/0.1766, allocations: 0.5818 MB / 0.4967 GB, free: 2.211 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001457/0.178, allocations: 0.8647 MB / 0.4976 GB, free: 1.344 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003377/0.1814, allocations: 1.68 MB / 0.4992 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008912/0.1903, allocations: 5.123 MB / 0.5042 GB, free: 10.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.1903, allocations: 0 / 0.5042 GB, free: 10.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1903, allocations: 0 / 0.5042 GB, free: 10.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001899/0.1905, allocations: 0 / 0.5042 GB, free: 10.52 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.0108/0.2013, allocations: 3.56 MB / 0.5077 GB, free: 6.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.223e-05/0.2014, allocations: 8.031 kB / 0.5077 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005893/0.202, allocations: 371.3 kB / 0.508 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002748/0.2047, allocations: 0.5728 MB / 0.5086 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004302/0.209, allocations: 1.852 MB / 0.5104 GB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001838/0.2092, allocations: 193.5 kB / 0.5106 GB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004891/0.2097, allocations: 263.8 kB / 0.5108 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006073/0.2158, allocations: 3.281 MB / 0.514 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-05/0.2158, allocations: 3.984 kB / 0.514 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002378/0.2161, allocations: 111.9 kB / 0.5142 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1997/0.4157, allocations: 114.1 kB / 0.5143 GB, free: 43.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005464/0.4212, allocations: 2.717 MB / 0.5169 GB, free: 42.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01479/0.436, allocations: 10.85 MB / 0.5275 GB, free: 36.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003071/0.439, allocations: 3.527 MB / 0.531 GB, free: 33.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001112/0.4402, allocations: 0.7391 MB / 0.5317 GB, free: 33.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003539/0.4437, allocations: 2.399 MB / 0.534 GB, free: 31.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.4437, allocations: 51.56 kB / 0.5341 GB, free: 31.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.785e-06/0.4437, allocations: 0 / 0.5341 GB, free: 31.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.009571/0.4533, allocations: 5.318 MB / 0.5393 GB, free: 28.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005463/0.4588, allocations: 5.179 MB / 0.5443 GB, free: 24.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00171/0.4605, allocations: 1.523 MB / 0.5458 GB, free: 23.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.059e-05/0.4605, allocations: 41.45 kB / 0.5458 GB, free: 23.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005145/0.4611, allocations: 1.284 MB / 0.5471 GB, free: 22.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.4612, allocations: 429.7 kB / 0.5475 GB, free: 22.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003014/0.4615, allocations: 272.8 kB / 0.5478 GB, free: 22.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.051e-05/0.4616, allocations: 309 kB / 0.5481 GB, free: 21.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007354/0.4623, allocations: 0.613 MB / 0.5487 GB, free: 21.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008491/0.4632, allocations: 1.142 MB / 0.5498 GB, free: 20.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.4648, allocations: 1.9 MB / 0.5516 GB, free: 18.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.79e-06/0.4648, allocations: 4 kB / 0.5516 GB, free: 18.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00222/0.467, allocations: 2.017 MB / 0.5536 GB, free: 16.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.467, allocations: 12 kB / 0.5536 GB, free: 16.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.467, allocations: 16.72 kB / 0.5536 GB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002004/0.4672, allocations: 105.5 kB / 0.5537 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.4684, allocations: 391.4 kB / 0.5541 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.07e-05/0.4684, allocations: 39.03 kB / 0.5541 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008849/0.4693, allocations: 83.89 kB / 0.5542 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.238e-05/0.4694, allocations: 75.98 kB / 0.5543 GB, free: 15.38 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.0009521/0.4703, allocations: 0.8056 MB / 0.5551 GB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.4705, allocations: 171.5 kB / 0.5552 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002427/0.4729, allocations: 1.828 MB / 0.557 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.473, allocations: 12.98 kB / 0.557 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.473, allocations: 1.812 kB / 0.557 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.473, allocations: 3.984 kB / 0.5571 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006582/0.4796, allocations: 5.613 MB / 0.5625 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.4796, allocations: 5.5 kB / 0.5625 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006341/0.4802, allocations: 180.1 kB / 0.5627 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009084/0.4811, allocations: 405.3 kB / 0.5631 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.519e-05/0.4812, allocations: 20 kB / 0.5631 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005154/0.4863, allocations: 5.183 MB / 0.5682 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006911/0.4932, allocations: 5.05 MB / 0.5731 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004429/0.4977, allocations: 2.757 MB / 0.5758 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008194/0.4985, allocations: 399.8 kB / 0.5762 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001913/0.4987, allocations: 20.09 kB / 0.5762 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007561/0.4994, allocations: 64 kB / 0.5763 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.4996, allocations: 100.7 kB / 0.5764 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.976e-05/0.4997, allocations: 32.69 kB / 0.5764 GB, free: 8.281 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001668/0.5014, allocations: 1.038 MB / 0.5774 GB, free: 7.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5014, allocations: 0 / 0.5774 GB, free: 7.246 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001712/0.5031, allocations: 0.5078 MB / 0.5779 GB, free: 6.738 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.004939/0.508, allocations: 3.345 MB / 0.5812 GB, free: 3.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002831/0.5108, allocations: 1.652 MB / 0.5828 GB, free: 1.641 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.5109, allocations: 0.5 kB / 0.5828 GB, free: 1.641 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.5127, allocations: 1.07 MB / 0.5838 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.5148, allocations: 472.6 kB / 0.5843 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02521/0.54, allocations: 16.88 MB / 0.6008 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001896/0.5419, allocations: 1.961 MB / 0.6027 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.5432, allocations: 378.9 kB / 0.603 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.5445, allocations: 0.9523 MB / 0.604 GB, free: 11.09 MB / 430.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5445, allocations: 4 kB / 0.604 GB, free: 11.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09821/0.6427, allocations: 46.74 MB / 0.6496 GB, free: 12.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.21/27.85, allocations: 7.312 kB / 0.6496 GB, free: 12.7 MB / 478.1 MB " [Timeout remaining time 632] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_SMPM_NominalOperation_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_SMPM_NominalOperation.fmu > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.452320421114564] Failed to read output from testmodel.py, exit status != 0: 27.977682805620134 27.99954058 27.804772874 Calling exit ...