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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 80.44 kB / 19.16 MB, free: 0.7305 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008397/0.0008397, allocations: 169.9 kB / 22.45 MB, free: 2.09 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8796/0.8796, allocations: 177.2 MB / 202.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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.007554/0.007554, allocations: 1.988 MB / 261.3 MB, free: 11.13 MB / 250.7 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.783e-06/1.783e-06, allocations: 0 / 384.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.572e-05/1.75e-05, allocations: 2.281 kB / 384.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01117/0.01119, allocations: 12.91 MB / 397.2 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.007825/0.01902, allocations: 4.937 MB / 402.2 MB, free: 11.61 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001463/0.02048, allocations: 111.3 kB / 402.3 MB, free: 11.5 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.02239, allocations: 1.04 MB / 403.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002113/0.0245, allocations: 1.165 MB / 404.5 MB, free: 9.289 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.02565, allocations: 0.8049 MB / 405.3 MB, free: 8.484 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002899/0.02855, allocations: 3.242 MB / 408.5 MB, free: 5.227 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.02988, allocations: 1.426 MB / 410 MB, free: 3.734 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001815/0.03169, allocations: 2.097 MB / 412.1 MB, free: 1.633 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.03288, allocations: 1.333 MB / 413.4 MB, free: 304 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003314/0.03321, allocations: 392 kB / 413.8 MB, free: 15.91 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007557/0.03397, allocations: 0.5854 MB / 414.4 MB, free: 15.33 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007545/0.03472, allocations: 0.884 MB / 415.3 MB, free: 14.44 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007906/0.03551, allocations: 1.123 MB / 416.4 MB, free: 13.32 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003203/0.03872, allocations: 5.188 MB / 421.6 MB, free: 8.113 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.03872, allocations: 0 / 421.6 MB, free: 8.113 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.03872, allocations: 0 / 421.6 MB, free: 8.113 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.397e-05/0.03877, allocations: 4 kB / 421.6 MB, free: 8.109 MB / 394.7 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.004534/0.0433, allocations: 3.516 MB / 425.1 MB, free: 4.539 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.04334, allocations: 12.03 kB / 425.1 MB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000305/0.04364, allocations: 371.3 kB / 425.5 MB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001346/0.04499, allocations: 0.5573 MB / 426 MB, free: 3.598 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001892/0.04688, allocations: 1.799 MB / 427.8 MB, free: 1.746 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-05/0.04697, allocations: 189.5 kB / 428 MB, free: 1.559 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002304/0.0472, allocations: 260.3 kB / 428.3 MB, free: 1.305 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003806/0.051, allocations: 3.365 MB / 431.6 MB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.412e-05/0.05105, allocations: 0 / 431.6 MB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001598/0.05121, allocations: 104 kB / 431.7 MB, free: 13.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-05/0.0513, allocations: 117 kB / 431.8 MB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002908/0.05421, allocations: 2.713 MB / 434.5 MB, free: 10.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009659/0.06386, allocations: 9.703 MB / 444.2 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1718/0.2357, allocations: 1.401 MB / 445.6 MB, free: 93.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009326/0.2366, allocations: 0.7673 MB / 446.4 MB, free: 93.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002654/0.2393, allocations: 2.047 MB / 448.5 MB, free: 92.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.2393, allocations: 47.53 kB / 448.5 MB, free: 92.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 3.006e-06/0.2393, allocations: 3.062 kB / 448.5 MB, free: 92.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=117): time 0.005971/0.2453, allocations: 5.176 MB / 453.7 MB, free: 90.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003677/0.249, allocations: 4.997 MB / 458.7 MB, free: 87.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.2502, allocations: 1.574 MB / 460.3 MB, free: 87.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.2503, allocations: 47.27 kB / 460.3 MB, free: 87.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004044/0.2507, allocations: 1.285 MB / 461.6 MB, free: 86.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.2508, allocations: 430.5 kB / 462 MB, free: 85.94 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.2511, allocations: 271.2 kB / 462.3 MB, free: 85.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.055e-05/0.2511, allocations: 309 kB / 462.6 MB, free: 85.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005304/0.2516, allocations: 0.616 MB / 463.2 MB, free: 85.26 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006568/0.2523, allocations: 1.164 MB / 464.4 MB, free: 84.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.2535, allocations: 1.889 MB / 466.2 MB, free: 83.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.2535, allocations: 6.625 kB / 466.3 MB, free: 83.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00163/0.2552, allocations: 2.029 MB / 468.3 MB, free: 82.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.2552, allocations: 12.72 kB / 468.3 MB, free: 82.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.2552, allocations: 19.12 kB / 468.3 MB, free: 82.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001346/0.2553, allocations: 100.8 kB / 468.4 MB, free: 82.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007235/0.256, allocations: 388.6 kB / 468.8 MB, free: 82.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.2561, allocations: 36.48 kB / 468.8 MB, free: 82.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005177/0.2566, allocations: 92.66 kB / 468.9 MB, free: 82.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.475e-05/0.2566, allocations: 76.08 kB / 469 MB, free: 82.01 MB / 410.7 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.0007538/0.2574, allocations: 0.8113 MB / 469.8 MB, free: 81.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.2575, allocations: 183 kB / 470 MB, free: 81.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.2592, allocations: 1.826 MB / 471.8 MB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.2592, allocations: 13.12 kB / 471.8 MB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2592, allocations: 0 / 471.8 MB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.2592, allocations: 7.047 kB / 471.8 MB, free: 80.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004768/0.264, allocations: 5.206 MB / 477 MB, free: 78.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.264, allocations: 3.406 kB / 477 MB, free: 78.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004062/0.2644, allocations: 188.1 kB / 477.2 MB, free: 78.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005905/0.265, allocations: 393.5 kB / 477.6 MB, free: 78.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.265, allocations: 25.08 kB / 477.6 MB, free: 78.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004035/0.269, allocations: 4.997 MB / 482.6 MB, free: 74.94 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004093/0.2731, allocations: 4.89 MB / 487.5 MB, free: 71.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/0.2761, allocations: 2.75 MB / 490.3 MB, free: 70.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004648/0.2766, allocations: 318.8 kB / 490.6 MB, free: 70.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.2767, allocations: 22.91 kB / 490.6 MB, free: 70.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004134/0.2771, allocations: 64.53 kB / 490.7 MB, free: 70.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.2773, allocations: 105.7 kB / 490.8 MB, free: 70.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.648e-05/0.2773, allocations: 35.27 kB / 490.8 MB, free: 70.26 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001332/0.2787, allocations: 1.042 MB / 491.8 MB, free: 69.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.2787, allocations: 0 / 491.8 MB, free: 69.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001441/0.2801, allocations: 0.5126 MB / 492.4 MB, free: 69.79 MB / 410.7 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.002917/0.283, allocations: 3.348 MB / 495.7 MB, free: 67.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.2846, allocations: 1.499 MB / 497.2 MB, free: 67.33 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2846, allocations: 3.594 kB / 497.2 MB, free: 67.33 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009227/0.2855, allocations: 0.9898 MB / 498.2 MB, free: 66.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.2866, allocations: 489.5 kB / 498.7 MB, free: 66.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.3032, allocations: 16.9 MB / 0.5035 GB, free: 51.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001115/0.3043, allocations: 1.401 MB / 0.5049 GB, free: 50.85 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007902/0.3051, allocations: 387.5 kB / 0.5052 GB, free: 50.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006936/0.3058, allocations: 0.9671 MB / 0.5062 GB, free: 49.68 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.3058, allocations: 0 / 0.5062 GB, free: 49.68 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0476/0.3534, allocations: 49.32 MB / 0.5543 GB, free: 2.195 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.836/9.19, allocations: 3.75 kB / 0.5543 GB, free: 2.195 MB / 410.7 MB " [Timeout remaining time 651] (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 sys.exit(0), Time elapsed: 10.999755085911602] Failed to read output from testmodel.py, exit status != 0: 9.301207856740803 9.311748865 9.271301465 Calling exit ...