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.001466/0.001466, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001803/0.001803, allocations: 216.4 kB / 23.03 MB, free: 4.922 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.53/1.53, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.0151/0.0151, allocations: 2.626 MB / 315.8 MB, free: 268 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.005356/0.005356, allocations: 99.86 kB / 438.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1112, allocations: 53.99 MB / 492.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01896/0.1302, allocations: 12.88 MB / 0.4939 GB, free: 10.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.1403, allocations: 4.942 MB / 0.4987 GB, free: 6.016 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.1425, allocations: 111.3 kB / 0.4988 GB, free: 5.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003208/0.1457, allocations: 1.021 MB / 0.4998 GB, free: 4.883 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00397/0.1497, allocations: 1.173 MB / 0.501 GB, free: 3.703 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002281/0.152, allocations: 0.787 MB / 0.5018 GB, free: 2.914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2134/0.3654, allocations: 3.237 MB / 0.5049 GB, free: 5.707 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003121/0.3685, allocations: 1.495 MB / 0.5064 GB, free: 5.508 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002485/0.371, allocations: 1.418 MB / 0.5078 GB, free: 5.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003062/0.3741, allocations: 1.644 MB / 0.5094 GB, free: 5.141 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001083/0.3752, allocations: 387.8 kB / 0.5097 GB, free: 5.141 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/0.3772, allocations: 0.5944 MB / 0.5103 GB, free: 5.141 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00119/0.3784, allocations: 0.867 MB / 0.5112 GB, free: 5.031 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00279/0.3812, allocations: 1.323 MB / 0.5125 GB, free: 4.711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007226/0.3884, allocations: 5.189 MB / 0.5175 GB, free: 3.996 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3884, allocations: 0.5312 kB / 0.5175 GB, free: 3.996 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3884, allocations: 0.5 kB / 0.5175 GB, free: 3.996 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.3886, allocations: 0 / 0.5175 GB, free: 3.996 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.01097/0.3996, allocations: 3.513 MB / 0.521 GB, free: 2.059 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3996, allocations: 10.66 kB / 0.521 GB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001089/0.3997, allocations: 69.06 kB / 0.521 GB, free: 2.051 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008316/0.4005, allocations: 376 kB / 0.5214 GB, free: 1.836 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003113/0.4037, allocations: 0.5539 MB / 0.5219 GB, free: 1.637 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004058/0.4077, allocations: 1.805 MB / 0.5237 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/0.4079, allocations: 195.6 kB / 0.5239 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007648/0.4086, allocations: 262.2 kB / 0.5241 GB, free: 472 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009103/0.4177, allocations: 3.483 MB / 0.5275 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.108e-05/0.4178, allocations: 3.344 kB / 0.5275 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003718/0.4182, allocations: 107 kB / 0.5276 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001236/0.4183, allocations: 121.4 kB / 0.5278 GB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005778/0.4241, allocations: 2.718 MB / 0.5304 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/0.4447, allocations: 9.688 MB / 0.5399 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003279/0.4479, allocations: 1.413 MB / 0.5412 GB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.4495, allocations: 0.7612 MB / 0.542 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005507/0.455, allocations: 2.055 MB / 0.544 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.4551, allocations: 43.2 kB / 0.544 GB, free: 3.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 4.047e-06/0.4551, allocations: 0 / 0.544 GB, free: 3.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01418/0.4693, allocations: 5.192 MB / 0.5491 GB, free: 14.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009257/0.4785, allocations: 4.997 MB / 0.554 GB, free: 9.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003464/0.482, allocations: 1.541 MB / 0.5555 GB, free: 7.641 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002445/0.4822, allocations: 41.7 kB / 0.5555 GB, free: 7.594 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.4834, allocations: 1.292 MB / 0.5568 GB, free: 6.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005691/0.484, allocations: 425 kB / 0.5572 GB, free: 5.887 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007204/0.4847, allocations: 283.4 kB / 0.5575 GB, free: 5.605 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4849, allocations: 304.4 kB / 0.5578 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.4861, allocations: 0.613 MB / 0.5584 GB, free: 4.695 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.4879, allocations: 1.166 MB / 0.5595 GB, free: 3.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003241/0.4912, allocations: 1.898 MB / 0.5614 GB, free: 1.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.513e-05/0.4912, allocations: 4 kB / 0.5614 GB, free: 1.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004692/0.4959, allocations: 2.028 MB / 0.5633 GB, free: 15.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.902e-05/0.4959, allocations: 12 kB / 0.5634 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.337e-05/0.496, allocations: 24.16 kB / 0.5634 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003389/0.4963, allocations: 96.11 kB / 0.5635 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001706/0.498, allocations: 395.2 kB / 0.5638 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.596e-05/0.4981, allocations: 39.86 kB / 0.5639 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/0.4999, allocations: 91.88 kB / 0.564 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000301/0.5002, allocations: 68 kB / 0.564 GB, free: 14.61 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.002282/0.5025, allocations: 0.8055 MB / 0.5648 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006303/0.5031, allocations: 182.8 kB / 0.565 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004003/0.5071, allocations: 1.815 MB / 0.5668 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.5072, allocations: 12 kB / 0.5668 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.5072, allocations: 3.812 kB / 0.5668 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.5072, allocations: 7.969 kB / 0.5668 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/0.519, allocations: 5.213 MB / 0.5719 GB, free: 6.539 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.519, allocations: 4.062 kB / 0.5719 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008781/0.5199, allocations: 179.8 kB / 0.5721 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001363/0.5213, allocations: 400.5 kB / 0.5724 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.5214, allocations: 27.98 kB / 0.5725 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008163/0.5295, allocations: 4.998 MB / 0.5773 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008036/0.5376, allocations: 4.885 MB / 0.5821 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005093/0.5427, allocations: 2.762 MB / 0.5848 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.5437, allocations: 326.7 kB / 0.5851 GB, free: 8.734 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004301/0.5442, allocations: 16 kB / 0.5851 GB, free: 8.719 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.5452, allocations: 59.94 kB / 0.5852 GB, free: 8.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.5455, allocations: 104.2 kB / 0.5853 GB, free: 8.562 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.198e-05/0.5456, allocations: 35.98 kB / 0.5853 GB, free: 8.527 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001875/0.5474, allocations: 1.043 MB / 0.5863 GB, free: 7.488 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5474, allocations: 4.062 kB / 0.5864 GB, free: 7.484 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002197/0.5496, allocations: 0.5116 MB / 0.5869 GB, free: 6.977 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.005505/0.5551, allocations: 3.351 MB / 0.5901 GB, free: 3.594 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002952/0.5581, allocations: 1.499 MB / 0.5916 GB, free: 2.148 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.5581, allocations: 0 / 0.5916 GB, free: 2.148 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002113/0.5602, allocations: 0.9867 MB / 0.5926 GB, free: 1.172 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.563, allocations: 483.2 kB / 0.593 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03224/0.5953, allocations: 16.88 MB / 0.6095 GB, free: 15.15 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002621/0.5979, allocations: 1.4 MB / 0.6109 GB, free: 13.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001737/0.5996, allocations: 378.9 kB / 0.6112 GB, free: 13.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002178/0.6018, allocations: 0.9601 MB / 0.6122 GB, free: 12.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.694e-06/0.6018, allocations: 0 / 0.6122 GB, free: 12.38 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1052/0.707, allocations: 49.19 MB / 0.6602 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.63/30.34, allocations: 18 kB / 0.6602 GB, free: 11.77 MB / 0.4981 GB " [Timeout remaining time 629] (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.24773948302027] Failed to read output from testmodel.py, exit status != 0: 30.546580094960518 30.569586472 30.175986017 Calling exit ...