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.001745/0.001745, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.002119/0.002119, allocations: 215 kB / 20.13 MB, free: 2.949 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.545/1.545, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.02007/0.02007, allocations: 2.625 MB / 312.2 MB, free: 2.668 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="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.003072/0.003072, allocations: 100.7 kB / 433.7 MB, free: 39.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0808/0.08387, allocations: 53.95 MB / 487.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01219/0.09606, allocations: 14.82 MB / 0.4907 GB, free: 2.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008867/0.1049, allocations: 5.249 MB / 0.4958 GB, free: 13.3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002315/0.1072, allocations: 115.2 kB / 0.4959 GB, free: 13.19 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003026/0.1103, allocations: 1.107 MB / 0.497 GB, free: 12.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003497/0.1138, allocations: 1.177 MB / 0.4982 GB, free: 10.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002101/0.1159, allocations: 0.8103 MB / 0.499 GB, free: 10.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00476/0.1206, allocations: 3.247 MB / 0.5021 GB, free: 6.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003404/0.124, allocations: 1.851 MB / 0.5039 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002265/0.1263, allocations: 1.413 MB / 0.5053 GB, free: 3.488 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002805/0.1291, allocations: 1.642 MB / 0.5069 GB, free: 1.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000802/0.1299, allocations: 392 kB / 0.5073 GB, free: 1.457 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.1315, allocations: 0.6013 MB / 0.5079 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009116/0.1324, allocations: 0.8725 MB / 0.5087 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0022/0.1346, allocations: 1.668 MB / 0.5104 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006395/0.141, allocations: 5.162 MB / 0.5154 GB, free: 9.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.141, allocations: 0 / 0.5154 GB, free: 9.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.141, allocations: 0 / 0.5154 GB, free: 9.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001274/0.1411, allocations: 0 / 0.5154 GB, free: 9.125 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.009272/0.1504, allocations: 3.591 MB / 0.5189 GB, free: 5.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.1504, allocations: 12.03 kB / 0.5189 GB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.868e-05/0.1505, allocations: 65.31 kB / 0.519 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005752/0.1511, allocations: 375.3 kB / 0.5193 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002812/0.1539, allocations: 0.5534 MB / 0.5199 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003629/0.1575, allocations: 1.868 MB / 0.5217 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.1577, allocations: 201.2 kB / 0.5219 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000525/0.1582, allocations: 252 kB / 0.5221 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006323/0.1646, allocations: 3.285 MB / 0.5253 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-05/0.1646, allocations: 8 kB / 0.5254 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002722/0.1649, allocations: 100 kB / 0.5254 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001456/0.1651, allocations: 125 kB / 0.5256 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005311/0.1704, allocations: 2.717 MB / 0.5282 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01968/0.19, allocations: 11.06 MB / 0.539 GB, free: 264 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004713/0.1948, allocations: 3.834 MB / 0.5428 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001609/0.1964, allocations: 0.7766 MB / 0.5435 GB, free: 11.11 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005324/0.2017, allocations: 2.594 MB / 0.5461 GB, free: 8.406 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.193e-05/0.2017, allocations: 51.09 kB / 0.5461 GB, free: 8.344 MB / 414.1 MB Notification: Performance of pre-optimization done (n=81): time 2.925e-06/0.2017, allocations: 0 / 0.5461 GB, free: 8.344 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01319/0.2149, allocations: 5.334 MB / 0.5513 GB, free: 2.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008877/0.2238, allocations: 5.186 MB / 0.5564 GB, free: 13.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002696/0.2265, allocations: 1.541 MB / 0.5579 GB, free: 12.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.2267, allocations: 49.64 kB / 0.5579 GB, free: 11.97 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.2278, allocations: 1.278 MB / 0.5592 GB, free: 10.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004976/0.2283, allocations: 436.3 kB / 0.5596 GB, free: 10.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004787/0.2287, allocations: 279.5 kB / 0.5599 GB, free: 9.973 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2289, allocations: 305.1 kB / 0.5602 GB, free: 9.672 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.2299, allocations: 0.613 MB / 0.5608 GB, free: 9.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.2314, allocations: 1.138 MB / 0.5619 GB, free: 7.684 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003048/0.2345, allocations: 1.898 MB / 0.5637 GB, free: 5.551 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.804e-05/0.2345, allocations: 4 kB / 0.5637 GB, free: 5.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003794/0.2383, allocations: 2.026 MB / 0.5657 GB, free: 3.508 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.2383, allocations: 12.16 kB / 0.5657 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.92e-05/0.2384, allocations: 20 kB / 0.5657 GB, free: 3.477 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003332/0.2387, allocations: 101.6 kB / 0.5658 GB, free: 3.371 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/0.2403, allocations: 391.4 kB / 0.5662 GB, free: 2.988 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.042e-05/0.2403, allocations: 39.84 kB / 0.5662 GB, free: 2.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.2415, allocations: 91.88 kB / 0.5663 GB, free: 2.859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.2417, allocations: 68 kB / 0.5664 GB, free: 2.793 MB / 430.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.00143/0.2431, allocations: 0.8112 MB / 0.5672 GB, free: 1.973 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003334/0.2434, allocations: 178.8 kB / 0.5674 GB, free: 1.797 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.2472, allocations: 1.828 MB / 0.5691 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.2472, allocations: 12 kB / 0.5692 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2472, allocations: 0 / 0.5692 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.2472, allocations: 7.969 kB / 0.5692 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.2574, allocations: 5.639 MB / 0.5747 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.2574, allocations: 4 kB / 0.5747 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008199/0.2582, allocations: 175.8 kB / 0.5748 GB, free: 9.992 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001455/0.2596, allocations: 397.4 kB / 0.5752 GB, free: 9.598 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.902e-05/0.2597, allocations: 31.94 kB / 0.5752 GB, free: 9.566 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008208/0.2679, allocations: 5.169 MB / 0.5803 GB, free: 4.254 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2435/0.5115, allocations: 5.064 MB / 0.5852 GB, free: 93.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004867/0.5163, allocations: 2.756 MB / 0.5879 GB, free: 93.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.5176, allocations: 394.6 kB / 0.5883 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004551/0.518, allocations: 28.83 kB / 0.5883 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.5191, allocations: 59.69 kB / 0.5884 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000287/0.5194, allocations: 93.75 kB / 0.5885 GB, free: 93.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.893e-05/0.5195, allocations: 36.09 kB / 0.5885 GB, free: 93.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00222/0.5217, allocations: 1.042 MB / 0.5895 GB, free: 92.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5217, allocations: 0 / 0.5895 GB, free: 92.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002579/0.5243, allocations: 0.5108 MB / 0.59 GB, free: 92.94 MB / 446.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.005327/0.5296, allocations: 3.349 MB / 0.5933 GB, free: 91.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003188/0.5328, allocations: 1.652 MB / 0.5949 GB, free: 91.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.5328, allocations: 0 / 0.5949 GB, free: 91.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.5343, allocations: 1.072 MB / 0.596 GB, free: 90.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002306/0.5367, allocations: 480.7 kB / 0.5964 GB, free: 90.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02365/0.5603, allocations: 16.88 MB / 0.6129 GB, free: 80.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.5617, allocations: 1.968 MB / 0.6148 GB, free: 78.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001205/0.5629, allocations: 380.2 kB / 0.6152 GB, free: 78.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/0.5639, allocations: 0.9601 MB / 0.6161 GB, free: 77.62 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/0.5639, allocations: 4 kB / 0.6161 GB, free: 77.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07561/0.6395, allocations: 46.97 MB / 0.662 GB, free: 31.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 29.12/29.76, allocations: 11.88 kB / 0.662 GB, free: 31.03 MB / 446.1 MB " [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.8500992449699] Failed to read output from testmodel.py, exit status != 0: 29.9458697810187 29.965429376 29.820530024 Calling exit ...