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.001307/0.001307, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001516/0.001516, allocations: 216.9 kB / 23.04 MB, free: 5.074 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.45/1.45, allocations: 230.6 MB / 256.8 MB, free: 7.969 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.01398/0.01398, allocations: 2.625 MB / 315.9 MB, free: 460 kB / 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="cs",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.003033/0.003033, allocations: 104.7 kB / 439 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09628, allocations: 53.99 MB / 493 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01814/0.1144, allocations: 14.87 MB / 0.4959 GB, free: 9.219 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1249, allocations: 5.261 MB / 0.5011 GB, free: 3.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002226/0.1272, allocations: 111.3 kB / 0.5012 GB, free: 3.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003132/0.1303, allocations: 1.111 MB / 0.5023 GB, free: 2.719 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00463/0.1349, allocations: 1.188 MB / 0.5034 GB, free: 1.523 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002345/0.1373, allocations: 0.8258 MB / 0.5042 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2292/0.3665, allocations: 3.232 MB / 0.5074 GB, free: 5.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002954/0.3694, allocations: 1.493 MB / 0.5088 GB, free: 5.645 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003057/0.3725, allocations: 1.413 MB / 0.5102 GB, free: 5.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004363/0.3768, allocations: 1.647 MB / 0.5118 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001357/0.3782, allocations: 387.9 kB / 0.5122 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002552/0.3807, allocations: 0.6058 MB / 0.5128 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.382, allocations: 0.8751 MB / 0.5136 GB, free: 5.094 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005428/0.3875, allocations: 1.667 MB / 0.5153 GB, free: 4.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009546/0.397, allocations: 5.167 MB / 0.5203 GB, free: 2.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.876e-06/0.397, allocations: 0 / 0.5203 GB, free: 2.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.397, allocations: 0 / 0.5203 GB, free: 2.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000237/0.3973, allocations: 0 / 0.5203 GB, free: 2.84 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.01043/0.4077, allocations: 3.511 MB / 0.5237 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.4077, allocations: 13.75 kB / 0.5238 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001189/0.4079, allocations: 75.62 kB / 0.5238 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005617/0.4084, allocations: 370.9 kB / 0.5242 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002807/0.4112, allocations: 0.5529 MB / 0.5247 GB, free: 484 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003753/0.415, allocations: 1.812 MB / 0.5265 GB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/0.4152, allocations: 192.2 kB / 0.5267 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005281/0.4157, allocations: 254.2 kB / 0.5269 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006473/0.4222, allocations: 3.28 MB / 0.5301 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.999e-05/0.4222, allocations: 17.12 kB / 0.5301 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002521/0.4225, allocations: 102.9 kB / 0.5302 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.4226, allocations: 114.5 kB / 0.5304 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00504/0.4277, allocations: 2.726 MB / 0.533 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01786/0.4455, allocations: 10.59 MB / 0.5434 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003055/0.4486, allocations: 1.429 MB / 0.5447 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.4499, allocations: 0.7666 MB / 0.5455 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004453/0.4544, allocations: 2.287 MB / 0.5477 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/0.4544, allocations: 39.22 kB / 0.5478 GB, free: 14.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.094e-06/0.4544, allocations: 0 / 0.5478 GB, free: 14.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=117): time 0.01154/0.466, allocations: 5.187 MB / 0.5528 GB, free: 9.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007806/0.4738, allocations: 5.078 MB / 0.5578 GB, free: 4.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002433/0.4762, allocations: 1.542 MB / 0.5593 GB, free: 2.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.4764, allocations: 49.7 kB / 0.5593 GB, free: 2.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.4774, allocations: 1.288 MB / 0.5606 GB, free: 1.477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003947/0.4778, allocations: 430 kB / 0.561 GB, free: 1.062 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004423/0.4782, allocations: 275.5 kB / 0.5613 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.4783, allocations: 304.1 kB / 0.5616 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009974/0.4793, allocations: 0.6138 MB / 0.5622 GB, free: 15.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.4808, allocations: 1.144 MB / 0.5633 GB, free: 14.51 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/0.4834, allocations: 1.896 MB / 0.5651 GB, free: 12.45 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.4834, allocations: 4 kB / 0.5651 GB, free: 12.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003344/0.4867, allocations: 2.035 MB / 0.5671 GB, free: 10.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.4867, allocations: 12 kB / 0.5671 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.758e-05/0.4868, allocations: 19.98 kB / 0.5672 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.487, allocations: 97.33 kB / 0.5673 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.4885, allocations: 396 kB / 0.5676 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.474e-05/0.4885, allocations: 34.83 kB / 0.5677 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.4898, allocations: 87.83 kB / 0.5677 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.4899, allocations: 71.98 kB / 0.5678 GB, free: 9.82 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.00151/0.4914, allocations: 0.8075 MB / 0.5686 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.4917, allocations: 174.9 kB / 0.5688 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003527/0.4953, allocations: 1.829 MB / 0.5706 GB, free: 7.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.4953, allocations: 8 kB / 0.5706 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4953, allocations: 4 kB / 0.5706 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.4953, allocations: 14.64 kB / 0.5706 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009869/0.5052, allocations: 5.471 MB / 0.5759 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.5052, allocations: 4 kB / 0.5759 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007804/0.5059, allocations: 185.2 kB / 0.5761 GB, free: 1.301 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.5072, allocations: 405.3 kB / 0.5765 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.779e-05/0.5072, allocations: 23.98 kB / 0.5765 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007647/0.5149, allocations: 5.082 MB / 0.5815 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007591/0.5225, allocations: 4.963 MB / 0.5863 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004591/0.5271, allocations: 2.755 MB / 0.589 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009551/0.528, allocations: 330.2 kB / 0.5893 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.5283, allocations: 27.94 kB / 0.5894 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007909/0.5291, allocations: 59.94 kB / 0.5894 GB, free: 3.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002216/0.5293, allocations: 96.44 kB / 0.5895 GB, free: 3.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.226e-05/0.5294, allocations: 32 kB / 0.5895 GB, free: 3.309 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001649/0.531, allocations: 1.051 MB / 0.5906 GB, free: 2.266 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.531, allocations: 0 / 0.5906 GB, free: 2.266 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001905/0.5329, allocations: 0.5039 MB / 0.5911 GB, free: 1.762 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.005034/0.5379, allocations: 3.356 MB / 0.5943 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002719/0.5407, allocations: 1.5 MB / 0.5958 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.5407, allocations: 0 / 0.5958 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.5424, allocations: 0.9828 MB / 0.5968 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002357/0.5448, allocations: 492.5 kB / 0.5972 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02644/0.5712, allocations: 16.89 MB / 0.6137 GB, free: 9.922 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001983/0.5732, allocations: 1.953 MB / 0.6156 GB, free: 7.934 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001325/0.5746, allocations: 390.9 kB / 0.616 GB, free: 7.547 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001358/0.5759, allocations: 0.964 MB / 0.6169 GB, free: 6.582 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5759, allocations: 0 / 0.6169 GB, free: 6.582 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0961/0.672, allocations: 48.23 MB / 0.664 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.61/30.28, allocations: 18.17 kB / 0.6641 GB, free: 6.785 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: 33.06474401301239] Failed to read output from testmodel.py, exit status != 0: 30.493415540026035 30.512045431 30.111335184 Calling exit ...