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.0008238/0.0008238, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008755/0.0008755, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.926/0.926, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.007759/0.007759, allocations: 1.992 MB / 261.2 MB, free: 11.28 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 2.385e-06/2.385e-06, allocations: 0 / 384.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.636e-05/2.875e-05, allocations: 6.281 kB / 384.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01059/0.01062, allocations: 12.93 MB / 397.2 MB, free: 15.35 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008607/0.01922, allocations: 4.945 MB / 402.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002992/0.02222, allocations: 111.3 kB / 402.2 MB, free: 10.28 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003291/0.02551, allocations: 1.044 MB / 403.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004992/0.0305, allocations: 1.207 MB / 404.5 MB, free: 8.02 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002152/0.03265, allocations: 0.7944 MB / 405.3 MB, free: 7.227 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004254/0.03691, allocations: 3.352 MB / 408.6 MB, free: 3.863 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002061/0.03897, allocations: 1.422 MB / 410.1 MB, free: 2.379 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002787/0.04175, allocations: 2.097 MB / 412.2 MB, free: 284 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1722/0.214, allocations: 1.34 MB / 413.5 MB, free: 18.88 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001218/0.2152, allocations: 388.1 kB / 413.9 MB, free: 18.88 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00167/0.2169, allocations: 0.5866 MB / 414.5 MB, free: 18.88 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007683/0.2176, allocations: 0.8925 MB / 415.4 MB, free: 18.88 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002225/0.2198, allocations: 1.127 MB / 416.5 MB, free: 18.88 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006559/0.2264, allocations: 5.193 MB / 421.7 MB, free: 18.65 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.2264, allocations: 0 / 421.7 MB, free: 18.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2264, allocations: 0 / 421.7 MB, free: 18.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001639/0.2266, allocations: 0 / 421.7 MB, free: 18.65 MB / 330.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.01084/0.2374, allocations: 3.48 MB / 425.2 MB, free: 17.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.639e-05/0.2375, allocations: 10.19 kB / 425.2 MB, free: 17.31 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001696/0.2392, allocations: 377.8 kB / 425.5 MB, free: 17.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002517/0.2417, allocations: 0.5555 MB / 426.1 MB, free: 16.89 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004381/0.2461, allocations: 1.808 MB / 427.9 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.2462, allocations: 192.7 kB / 428.1 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006624/0.2469, allocations: 251.7 kB / 428.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005905/0.2528, allocations: 3.359 MB / 431.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.809e-05/0.2529, allocations: 6.547 kB / 431.7 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002461/0.2531, allocations: 105.2 kB / 431.8 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001297/0.2533, allocations: 125.9 kB / 431.9 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004161/0.2574, allocations: 2.716 MB / 434.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01305/0.2705, allocations: 9.689 MB / 444.3 MB, free: 5.598 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.2721, allocations: 1.407 MB / 445.7 MB, free: 4.859 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007843/0.2729, allocations: 0.7756 MB / 446.5 MB, free: 4.473 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002737/0.2756, allocations: 2.043 MB / 448.6 MB, free: 2.832 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.2756, allocations: 42.69 kB / 448.6 MB, free: 2.781 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 2.615e-06/0.2756, allocations: 0 / 448.6 MB, free: 2.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=117): time 0.007419/0.2831, allocations: 5.187 MB / 453.8 MB, free: 13.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005066/0.2881, allocations: 4.99 MB / 458.8 MB, free: 8.496 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.2903, allocations: 1.568 MB / 460.3 MB, free: 6.918 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000188/0.2905, allocations: 45.7 kB / 460.4 MB, free: 6.867 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007141/0.2912, allocations: 1.282 MB / 461.7 MB, free: 5.582 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002712/0.2915, allocations: 420.9 kB / 462.1 MB, free: 5.176 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003497/0.2918, allocations: 279.4 kB / 462.4 MB, free: 4.895 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.734e-05/0.2919, allocations: 305.1 kB / 462.7 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006849/0.2926, allocations: 0.613 MB / 463.3 MB, free: 3.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.2938, allocations: 1.169 MB / 464.4 MB, free: 2.582 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.2955, allocations: 1.896 MB / 466.3 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/0.2955, allocations: 4 kB / 466.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002871/0.2984, allocations: 2.033 MB / 468.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.2984, allocations: 16 kB / 468.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/0.2984, allocations: 16 kB / 468.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.2986, allocations: 97.61 kB / 468.5 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008106/0.2994, allocations: 392.7 kB / 468.9 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.881e-05/0.2994, allocations: 39.11 kB / 468.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.3006, allocations: 91.89 kB / 469 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.3007, allocations: 67.98 kB / 469.1 MB, free: 13.89 MB / 362.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.001813/0.3025, allocations: 0.8068 MB / 469.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004375/0.303, allocations: 178.9 kB / 470.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002305/0.3053, allocations: 1.825 MB / 471.9 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3053, allocations: 12 kB / 471.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3053, allocations: 0 / 471.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.3053, allocations: 3.984 kB / 471.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007132/0.3124, allocations: 5.222 MB / 477.1 MB, free: 5.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.325e-06/0.3124, allocations: 4 kB / 477.1 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000452/0.3129, allocations: 179 kB / 477.3 MB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008056/0.3137, allocations: 397.7 kB / 477.7 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-05/0.3138, allocations: 27.98 kB / 477.7 MB, free: 5.227 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005016/0.3188, allocations: 4.99 MB / 482.7 MB, free: 140 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004584/0.3234, allocations: 4.888 MB / 487.6 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003466/0.3268, allocations: 2.75 MB / 490.3 MB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008197/0.3277, allocations: 322.7 kB / 490.7 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.3278, allocations: 26.73 kB / 490.7 MB, free: 8.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/0.3283, allocations: 55.94 kB / 490.7 MB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.3285, allocations: 96.66 kB / 490.8 MB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.765e-05/0.3285, allocations: 39.98 kB / 490.9 MB, free: 7.836 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001217/0.3297, allocations: 1.047 MB / 491.9 MB, free: 6.793 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3297, allocations: 0 / 491.9 MB, free: 6.793 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001605/0.3313, allocations: 0.5116 MB / 492.4 MB, free: 6.281 MB / 378.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.003234/0.3346, allocations: 3.358 MB / 495.8 MB, free: 2.891 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002237/0.3368, allocations: 1.504 MB / 497.3 MB, free: 1.445 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.3368, allocations: 0 / 497.3 MB, free: 1.445 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.338, allocations: 0.985 MB / 498.3 MB, free: 480 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001705/0.3397, allocations: 482.8 kB / 498.7 MB, free: 8 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02497/0.3647, allocations: 16.92 MB / 0.5036 GB, free: 14.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/0.3659, allocations: 1.392 MB / 0.5049 GB, free: 12.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001079/0.367, allocations: 386.9 kB / 0.5053 GB, free: 12.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/0.3685, allocations: 0.9611 MB / 0.5062 GB, free: 11.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.884e-06/0.3685, allocations: 4 kB / 0.5063 GB, free: 11.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07088/0.4393, allocations: 49.1 MB / 0.5542 GB, free: 10.99 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.98/10.42, allocations: 3.375 kB / 0.5542 GB, free: 10.99 MB / 458.7 MB " [Timeout remaining time 649] (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: 12.315992567688227] Failed to read output from testmodel.py, exit status != 0: 10.534535307437181 10.542379395 10.313797758 Calling exit ...