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.001481/0.001482, allocations: 106.1 kB / 16.4 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.001533/0.001533, allocations: 192.5 kB / 19.35 MB, free: 3.734 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.503/1.503, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.01345/0.01345, allocations: 2.592 MB / 299.8 MB, free: 10.07 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.002689/0.002689, allocations: 111.8 kB / 413.6 MB, free: 29.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1085, allocations: 50.03 MB / 463.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.02074/0.1293, allocations: 14.13 MB / 477.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01405/0.1435, allocations: 4.972 MB / 482.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004205/0.1477, allocations: 87.69 kB / 482.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003835/0.1516, allocations: 1.04 MB / 483.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005434/0.1571, allocations: 1.165 MB / 485 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002467/0.1596, allocations: 0.7792 MB / 485.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005973/0.1656, allocations: 3.18 MB / 488.9 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003752/0.1694, allocations: 2.636 MB / 491.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002411/0.1718, allocations: 1.363 MB / 492.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002521/0.1743, allocations: 1.619 MB / 494.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000627/0.175, allocations: 388 kB / 494.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001435/0.1764, allocations: 0.5779 MB / 495.5 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008952/0.1773, allocations: 0.8687 MB / 496.4 MB, free: 9.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.1795, allocations: 1.672 MB / 498 MB, free: 8.277 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006714/0.1862, allocations: 5.131 MB / 0.4914 GB, free: 3.129 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1862, allocations: 0 / 0.4914 GB, free: 3.129 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1862, allocations: 0 / 0.4914 GB, free: 3.129 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001229/0.1864, allocations: 7.984 kB / 0.4914 GB, free: 3.121 MB / 366.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.009455/0.1958, allocations: 3.556 MB / 0.4949 GB, free: 15.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.711e-05/0.1959, allocations: 8.031 kB / 0.4949 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005318/0.1965, allocations: 367.3 kB / 0.4952 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002688/0.1992, allocations: 0.5689 MB / 0.4958 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003429/0.2026, allocations: 1.86 MB / 0.4976 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001617/0.2028, allocations: 189.5 kB / 0.4978 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003939/0.2032, allocations: 259.9 kB / 0.498 GB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00583/0.209, allocations: 3.281 MB / 0.5012 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.89e-05/0.2091, allocations: 3.938 kB / 0.5012 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/0.2093, allocations: 108 kB / 0.5013 GB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001448/0.2095, allocations: 125 kB / 0.5015 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004852/0.2144, allocations: 2.714 MB / 0.5041 GB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2626/0.477, allocations: 10.85 MB / 0.5147 GB, free: 45.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003383/0.4804, allocations: 3.604 MB / 0.5182 GB, free: 42.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/0.482, allocations: 0.8125 MB / 0.519 GB, free: 42.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004889/0.4869, allocations: 2.402 MB / 0.5214 GB, free: 41.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.487, allocations: 44.06 kB / 0.5214 GB, free: 41.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.845e-06/0.487, allocations: 0 / 0.5214 GB, free: 41.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01191/0.4989, allocations: 5.343 MB / 0.5266 GB, free: 39.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006828/0.5058, allocations: 5.177 MB / 0.5317 GB, free: 35.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002831/0.5086, allocations: 1.527 MB / 0.5332 GB, free: 35.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001629/0.5088, allocations: 41.67 kB / 0.5332 GB, free: 35.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000793/0.5096, allocations: 1.282 MB / 0.5345 GB, free: 34.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003636/0.51, allocations: 425.7 kB / 0.5349 GB, free: 33.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003979/0.5104, allocations: 279.6 kB / 0.5351 GB, free: 33.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.922e-05/0.5105, allocations: 308.9 kB / 0.5354 GB, free: 33.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000847/0.5113, allocations: 0.6106 MB / 0.536 GB, free: 33.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.5123, allocations: 1.143 MB / 0.5371 GB, free: 32.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.5141, allocations: 1.894 MB / 0.539 GB, free: 30.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/0.5141, allocations: 7.906 kB / 0.539 GB, free: 30.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002762/0.5169, allocations: 2.025 MB / 0.541 GB, free: 29.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.5169, allocations: 14.25 kB / 0.541 GB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.517, allocations: 16.44 kB / 0.541 GB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002414/0.5172, allocations: 94.8 kB / 0.5411 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.5185, allocations: 400.9 kB / 0.5415 GB, free: 29.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.097e-05/0.5185, allocations: 37.89 kB / 0.5415 GB, free: 29.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.5199, allocations: 84.64 kB / 0.5416 GB, free: 29.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.52, allocations: 79.86 kB / 0.5417 GB, free: 29.59 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.001458/0.5215, allocations: 0.7982 MB / 0.5424 GB, free: 29.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003375/0.5219, allocations: 176.2 kB / 0.5426 GB, free: 28.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002821/0.5247, allocations: 1.838 MB / 0.5444 GB, free: 27.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.5247, allocations: 11.16 kB / 0.5444 GB, free: 27.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.5247, allocations: 0 / 0.5444 GB, free: 27.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5247, allocations: 10.12 kB / 0.5444 GB, free: 27.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007702/0.5324, allocations: 5.63 MB / 0.5499 GB, free: 22.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.5325, allocations: 0 / 0.5499 GB, free: 22.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006737/0.5332, allocations: 184.1 kB / 0.5501 GB, free: 22.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.5342, allocations: 397.2 kB / 0.5505 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.226e-05/0.5343, allocations: 27.98 kB / 0.5505 GB, free: 21.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00563/0.5399, allocations: 5.178 MB / 0.5556 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005762/0.5457, allocations: 5.06 MB / 0.5605 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003659/0.5494, allocations: 2.761 MB / 0.5632 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007964/0.5502, allocations: 391.8 kB / 0.5636 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/0.5504, allocations: 27.98 kB / 0.5636 GB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000751/0.5511, allocations: 64 kB / 0.5637 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.5514, allocations: 96.75 kB / 0.5638 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.339e-05/0.5514, allocations: 39.05 kB / 0.5638 GB, free: 7.969 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001261/0.5527, allocations: 1.038 MB / 0.5648 GB, free: 6.934 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5527, allocations: 0 / 0.5648 GB, free: 6.934 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001774/0.5545, allocations: 0.5078 MB / 0.5653 GB, free: 6.426 MB / 382.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.003641/0.5581, allocations: 3.372 MB / 0.5686 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002375/0.5605, allocations: 1.718 MB / 0.5703 GB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.5606, allocations: 0.5 kB / 0.5703 GB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.5621, allocations: 1.136 MB / 0.5714 GB, free: 76 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003033/0.5651, allocations: 463.5 kB / 0.5718 GB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03568/0.6008, allocations: 16.88 MB / 0.5883 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003132/0.604, allocations: 1.957 MB / 0.5902 GB, free: 11.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001652/0.6057, allocations: 386.8 kB / 0.5906 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001745/0.6075, allocations: 0.9523 MB / 0.5915 GB, free: 10.65 MB / 414.1 MB Notification: Performance of SimCode: time 2.285e-06/0.6075, allocations: 0 / 0.5915 GB, free: 10.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1048/0.7123, allocations: 46.35 MB / 0.6368 GB, free: 12.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.42/29.13, allocations: 19.86 kB / 0.6368 GB, free: 12.64 MB / 462.1 MB " [Timeout remaining time 631] (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 & python3 -m fmpy simulate --output-file BLDC_BLDC.Examples.SMPM_NominalOperation_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 BLDC_BLDC_Examples_SMPM_NominalOperation.fmu > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 31.9990462110145] Failed to read output from testmodel.py, exit status != 0: 29.254735641996376 29.280626134 29.090297521 Calling exit ...