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.001324/0.001324, allocations: 110 kB / 18.93 MB, free: 2.945 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.001685/0.001685, allocations: 191.9 kB / 22.23 MB, free: 5.16 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.387/1.387, 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.01404/0.01404, allocations: 2.624 MB / 308.9 MB, free: 5.996 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.002744/0.002744, allocations: 107.8 kB / 429.7 MB, free: 21.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09932/0.1021, allocations: 52.82 MB / 482.5 MB, free: 300 kB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01817/0.1202, allocations: 14.27 MB / 496.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.1304, allocations: 5 MB / 0.49 GB, free: 12.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002469/0.1329, allocations: 107.3 kB / 0.4901 GB, free: 12.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003457/0.1363, allocations: 1.099 MB / 0.4912 GB, free: 11.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004485/0.1408, allocations: 1.216 MB / 0.4923 GB, free: 10.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002354/0.1432, allocations: 0.8009 MB / 0.4931 GB, free: 9.715 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005549/0.1487, allocations: 3.19 MB / 0.4962 GB, free: 6.516 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002997/0.1517, allocations: 1.488 MB / 0.4977 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003002/0.1547, allocations: 1.41 MB / 0.4991 GB, free: 3.547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003232/0.158, allocations: 1.638 MB / 0.5007 GB, free: 1.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001142/0.1591, allocations: 388 kB / 0.501 GB, free: 1.523 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.1609, allocations: 0.5896 MB / 0.5016 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001077/0.162, allocations: 0.8764 MB / 0.5025 GB, free: 56 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002686/0.1647, allocations: 1.657 MB / 0.5041 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007244/0.1719, allocations: 5.131 MB / 0.5091 GB, free: 9.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1719, allocations: 4 kB / 0.5091 GB, free: 9.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1719, allocations: 0 / 0.5091 GB, free: 9.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000138/0.172, allocations: 0 / 0.5091 GB, free: 9.238 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.00975/0.1818, allocations: 3.564 MB / 0.5126 GB, free: 5.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.623e-05/0.1819, allocations: 15.97 kB / 0.5126 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006402/0.1825, allocations: 367.3 kB / 0.513 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002773/0.1853, allocations: 0.5689 MB / 0.5135 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004219/0.1895, allocations: 1.864 MB / 0.5153 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.1897, allocations: 189.5 kB / 0.5155 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006805/0.1904, allocations: 255.9 kB / 0.5158 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2092/0.3996, allocations: 3.272 MB / 0.519 GB, free: 40.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.632e-05/0.3997, allocations: 10.28 kB / 0.519 GB, free: 40.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002659/0.3999, allocations: 102.4 kB / 0.5191 GB, free: 40.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001874/0.4001, allocations: 118.7 kB / 0.5192 GB, free: 40.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005366/0.4055, allocations: 2.719 MB / 0.5218 GB, free: 40.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01711/0.4226, allocations: 10.86 MB / 0.5324 GB, free: 34.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002795/0.4254, allocations: 3.516 MB / 0.5359 GB, free: 30.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.4266, allocations: 0.7434 MB / 0.5366 GB, free: 30.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00384/0.4304, allocations: 2.394 MB / 0.5389 GB, free: 28.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.4304, allocations: 55.17 kB / 0.539 GB, free: 28.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 3.066e-06/0.4304, allocations: 0 / 0.539 GB, free: 28.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.009987/0.4404, allocations: 5.318 MB / 0.5442 GB, free: 25.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005807/0.4462, allocations: 5.183 MB / 0.5492 GB, free: 21.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.4481, allocations: 1.524 MB / 0.5507 GB, free: 20.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.4482, allocations: 41.45 kB / 0.5508 GB, free: 20.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005842/0.4488, allocations: 1.284 MB / 0.552 GB, free: 19.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002553/0.4491, allocations: 422.1 kB / 0.5524 GB, free: 19.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003562/0.4494, allocations: 279 kB / 0.5527 GB, free: 19.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.118e-05/0.4495, allocations: 304.8 kB / 0.553 GB, free: 19.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007295/0.4502, allocations: 0.6104 MB / 0.5536 GB, free: 18.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009218/0.4511, allocations: 1.137 MB / 0.5547 GB, free: 17.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001872/0.453, allocations: 1.903 MB / 0.5565 GB, free: 15.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.996e-06/0.453, allocations: 4 kB / 0.5565 GB, free: 15.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002666/0.4557, allocations: 2.025 MB / 0.5585 GB, free: 13.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.4557, allocations: 12 kB / 0.5585 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.4557, allocations: 16 kB / 0.5585 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002341/0.456, allocations: 99.67 kB / 0.5586 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.4572, allocations: 395.8 kB / 0.559 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.343e-05/0.4572, allocations: 35.86 kB / 0.5591 GB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.4584, allocations: 79.94 kB / 0.5591 GB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.26e-05/0.4585, allocations: 71.98 kB / 0.5592 GB, free: 13.24 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.001206/0.4597, allocations: 0.8095 MB / 0.56 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002591/0.46, allocations: 178.8 kB / 0.5602 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002619/0.4626, allocations: 1.816 MB / 0.5619 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.4626, allocations: 8 kB / 0.5619 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.4626, allocations: 5.531 kB / 0.5619 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.4626, allocations: 17.27 kB / 0.562 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007698/0.4703, allocations: 5.609 MB / 0.5674 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.4703, allocations: 4 kB / 0.5674 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006692/0.471, allocations: 183.8 kB / 0.5676 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009764/0.472, allocations: 398.2 kB / 0.568 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.557e-05/0.472, allocations: 27.92 kB / 0.568 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006119/0.4782, allocations: 5.179 MB / 0.5731 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007605/0.4858, allocations: 5.057 MB / 0.578 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004715/0.4905, allocations: 2.768 MB / 0.5807 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.4916, allocations: 391.8 kB / 0.5811 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/0.4918, allocations: 20 kB / 0.5811 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008083/0.4926, allocations: 62.94 kB / 0.5812 GB, free: 6.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.4929, allocations: 105.9 kB / 0.5813 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.465e-05/0.4929, allocations: 32 kB / 0.5813 GB, free: 6.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001617/0.4946, allocations: 1.038 MB / 0.5823 GB, free: 5.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4946, allocations: 3.938 kB / 0.5823 GB, free: 5.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001967/0.4965, allocations: 0.5039 MB / 0.5828 GB, free: 4.586 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.005021/0.5015, allocations: 3.347 MB / 0.5861 GB, free: 1.176 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002858/0.5044, allocations: 1.648 MB / 0.5877 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.5044, allocations: 0 / 0.5877 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/0.5063, allocations: 1.062 MB / 0.5887 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.5087, allocations: 475 kB / 0.5892 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02828/0.5369, allocations: 16.9 MB / 0.6057 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/0.5389, allocations: 1.953 MB / 0.6076 GB, free: 10.28 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001367/0.5403, allocations: 378.8 kB / 0.608 GB, free: 9.902 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/0.5417, allocations: 0.9523 MB / 0.6089 GB, free: 8.949 MB / 430.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5417, allocations: 0 / 0.6089 GB, free: 8.949 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1034/0.6451, allocations: 47.98 MB / 0.6557 GB, free: 9.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.28/27.93, allocations: 11.2 kB / 0.6558 GB, free: 9.336 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 & 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: 30.51372780185193] Failed to read output from testmodel.py, exit status != 0: 28.052318044938147 28.08396511 27.905912539 Calling exit ...