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.00144/0.00144, allocations: 110.4 kB / 18.94 MB, free: 2.953 MB / 14.72 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.001508/0.001508, allocations: 209.8 kB / 22.25 MB, free: 5.137 MB / 14.72 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 1.476/1.476, allocations: 230.6 MB / 256 MB, free: 8 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.01395/0.01395, allocations: 2.626 MB / 315.1 MB, free: 0.5117 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.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: BLDC requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package ModelicaServices of version 4.0.0. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003071/0.003071, allocations: 112.3 kB / 438.2 MB, free: 14.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1127, allocations: 53.99 MB / 492.2 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.0182/0.1309, allocations: 14.88 MB / 0.4952 GB, free: 9.277 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.1423, allocations: 5.261 MB / 0.5003 GB, free: 4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003083/0.1454, allocations: 111.3 kB / 0.5004 GB, free: 3.891 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004189/0.1496, allocations: 1.111 MB / 0.5015 GB, free: 2.777 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004987/0.1546, allocations: 1.188 MB / 0.5027 GB, free: 1.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002781/0.1574, allocations: 0.8385 MB / 0.5035 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2101/0.3674, allocations: 3.229 MB / 0.5066 GB, free: 5.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002271/0.3697, allocations: 1.495 MB / 0.5081 GB, free: 5.645 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002353/0.372, allocations: 1.41 MB / 0.5095 GB, free: 5.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002579/0.3746, allocations: 1.645 MB / 0.5111 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007792/0.3754, allocations: 388.2 kB / 0.5114 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001743/0.3771, allocations: 0.6049 MB / 0.512 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008518/0.378, allocations: 0.8745 MB / 0.5129 GB, free: 5.094 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00195/0.38, allocations: 1.676 MB / 0.5145 GB, free: 4.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00759/0.3875, allocations: 5.161 MB / 0.5196 GB, free: 2.848 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3875, allocations: 0 / 0.5196 GB, free: 2.848 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.594e-06/0.3876, allocations: 1.312 kB / 0.5196 GB, free: 2.848 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001568/0.3877, allocations: 0 / 0.5196 GB, free: 2.848 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.008672/0.3964, allocations: 3.512 MB / 0.523 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.3964, allocations: 15.09 kB / 0.523 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004494/0.3969, allocations: 367.5 kB / 0.5234 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002548/0.3994, allocations: 0.5552 MB / 0.5239 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003563/0.403, allocations: 1.809 MB / 0.5257 GB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.4031, allocations: 191.9 kB / 0.5258 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004258/0.4036, allocations: 257.6 kB / 0.5261 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005648/0.4092, allocations: 3.289 MB / 0.5293 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.923e-05/0.4093, allocations: 3.953 kB / 0.5293 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002425/0.4095, allocations: 108.3 kB / 0.5294 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.4096, allocations: 122 kB / 0.5295 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004572/0.4142, allocations: 2.725 MB / 0.5322 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01694/0.4311, allocations: 10.58 MB / 0.5425 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002876/0.434, allocations: 1.422 MB / 0.5439 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.4354, allocations: 0.7689 MB / 0.5447 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004536/0.4399, allocations: 2.287 MB / 0.5469 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.218e-05/0.4399, allocations: 47.22 kB / 0.5469 GB, free: 14.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 3.477e-06/0.4399, allocations: 0 / 0.5469 GB, free: 14.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=117): time 0.01171/0.4517, allocations: 5.185 MB / 0.552 GB, free: 9.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008236/0.4599, allocations: 5.074 MB / 0.557 GB, free: 4.551 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002646/0.4625, allocations: 1.541 MB / 0.5585 GB, free: 3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001658/0.4627, allocations: 45.7 kB / 0.5585 GB, free: 2.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001092/0.4638, allocations: 1.283 MB / 0.5598 GB, free: 1.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000428/0.4642, allocations: 435.1 kB / 0.5602 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004411/0.4647, allocations: 275.5 kB / 0.5604 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4648, allocations: 301.1 kB / 0.5607 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000984/0.4658, allocations: 0.6169 MB / 0.5613 GB, free: 56 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00151/0.4673, allocations: 1.143 MB / 0.5624 GB, free: 14.69 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002638/0.4699, allocations: 1.894 MB / 0.5643 GB, free: 12.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.4699, allocations: 4 kB / 0.5643 GB, free: 12.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003517/0.4735, allocations: 2.036 MB / 0.5663 GB, free: 10.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.4735, allocations: 16.03 kB / 0.5663 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/0.4735, allocations: 20 kB / 0.5663 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002615/0.4738, allocations: 89.67 kB / 0.5664 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/0.4752, allocations: 399.2 kB / 0.5668 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.856e-05/0.4752, allocations: 43.11 kB / 0.5668 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/0.4765, allocations: 87.83 kB / 0.5669 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.4767, allocations: 71.98 kB / 0.567 GB, free: 9.992 MB / 414.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.001538/0.4782, allocations: 0.8035 MB / 0.5678 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000307/0.4785, allocations: 181.4 kB / 0.5679 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003406/0.4819, allocations: 1.824 MB / 0.5697 GB, free: 7.195 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.4819, allocations: 12 kB / 0.5697 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4819, allocations: 0 / 0.5697 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.4819, allocations: 3.984 kB / 0.5697 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.4923, allocations: 5.489 MB / 0.5751 GB, free: 1.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.4923, allocations: 4 kB / 0.5751 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007719/0.4931, allocations: 182.6 kB / 0.5753 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/0.4943, allocations: 400 kB / 0.5757 GB, free: 1.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.178e-05/0.4944, allocations: 28 kB / 0.5757 GB, free: 1.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007889/0.5023, allocations: 5.074 MB / 0.5806 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007587/0.5099, allocations: 4.965 MB / 0.5855 GB, free: 6.809 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004802/0.5147, allocations: 2.766 MB / 0.5882 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.5157, allocations: 318.7 kB / 0.5885 GB, free: 3.695 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002437/0.516, allocations: 31.92 kB / 0.5885 GB, free: 3.664 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007952/0.5168, allocations: 55.94 kB / 0.5886 GB, free: 3.609 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.517, allocations: 104.5 kB / 0.5887 GB, free: 3.512 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.004e-05/0.5171, allocations: 32 kB / 0.5887 GB, free: 3.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001771/0.5188, allocations: 1.043 MB / 0.5897 GB, free: 2.441 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5188, allocations: 0 / 0.5897 GB, free: 2.441 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001859/0.5207, allocations: 0.5039 MB / 0.5902 GB, free: 1.938 MB / 430.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.004965/0.5257, allocations: 3.357 MB / 0.5935 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.5284, allocations: 1.498 MB / 0.595 GB, free: 13.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.5284, allocations: 4 kB / 0.595 GB, free: 13.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.5301, allocations: 0.9859 MB / 0.5959 GB, free: 12.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/0.5325, allocations: 487.1 kB / 0.5964 GB, free: 11.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02799/0.5605, allocations: 16.89 MB / 0.6129 GB, free: 10.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002525/0.563, allocations: 1.957 MB / 0.6148 GB, free: 8.109 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001383/0.5644, allocations: 382.9 kB / 0.6152 GB, free: 7.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001571/0.566, allocations: 0.9679 MB / 0.6161 GB, free: 6.762 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.566, allocations: 3.188 kB / 0.6161 GB, free: 6.762 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1064/0.6724, allocations: 48.21 MB / 0.6632 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.97/29.64, allocations: 4.062 kB / 0.6632 GB, free: 6.992 MB / 0.4981 GB " [Timeout remaining time 630] (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: 32.306926696095616] Failed to read output from testmodel.py, exit status != 0: 29.786830394994467 29.812858917 29.420430682 Calling exit ...