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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") translateModel(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 105.1 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 191 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01265/0.01265, allocations: 2.598 MB / 293.8 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 91.86 kB / 406 MB, free: 29.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07996/0.08162, allocations: 50.03 MB / 456 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01472/0.09637, allocations: 14.13 MB / 470.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009226/0.1056, allocations: 4.984 MB / 475.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.1079, allocations: 83.69 kB / 475.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003086/0.1111, allocations: 1.036 MB / 476.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003955/0.1151, allocations: 1.161 MB / 477.4 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002106/0.1172, allocations: 0.7752 MB / 478.2 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004101/0.1213, allocations: 3.172 MB / 481.4 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003592/0.1249, allocations: 2.651 MB / 484 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001963/0.1269, allocations: 1.374 MB / 485.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002405/0.1293, allocations: 1.619 MB / 487 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008397/0.1302, allocations: 388 kB / 487.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001582/0.1318, allocations: 0.5779 MB / 488 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.1331, allocations: 0.8686 MB / 488.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003252/0.1364, allocations: 1.661 MB / 490.5 MB, free: 8.781 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005815/0.1422, allocations: 5.125 MB / 495.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1422, allocations: 0 / 495.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1422, allocations: 0 / 495.6 MB, free: 3.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001481/0.1424, allocations: 0 / 495.6 MB, free: 3.641 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.00908/0.1515, allocations: 3.49 MB / 499.1 MB, free: 84 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1515, allocations: 8.031 kB / 499.1 MB, free: 76 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002958/0.1545, allocations: 0.5516 MB / 499.7 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003741/0.1583, allocations: 1.839 MB / 0.4898 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.1584, allocations: 185.5 kB / 0.4899 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006034/0.159, allocations: 260 kB / 0.4902 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006209/0.1652, allocations: 3.281 MB / 0.4934 GB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-05/0.1653, allocations: 11.84 kB / 0.4934 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003106/0.1657, allocations: 104 kB / 0.4935 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/0.1658, allocations: 121 kB / 0.4936 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004912/0.1707, allocations: 2.717 MB / 0.4963 GB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2177/0.3884, allocations: 10.83 MB / 0.5068 GB, free: 46.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003172/0.3916, allocations: 3.61 MB / 0.5104 GB, free: 43.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.3929, allocations: 0.8102 MB / 0.5112 GB, free: 43.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004089/0.397, allocations: 2.399 MB / 0.5135 GB, free: 42.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.397, allocations: 43.56 kB / 0.5135 GB, free: 42.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.695e-06/0.397, allocations: 0 / 0.5135 GB, free: 42.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01129/0.4083, allocations: 5.294 MB / 0.5187 GB, free: 39.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00722/0.4156, allocations: 5.172 MB / 0.5238 GB, free: 36.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002016/0.4176, allocations: 1.527 MB / 0.5253 GB, free: 35.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001331/0.4178, allocations: 45.67 kB / 0.5253 GB, free: 35.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005873/0.4184, allocations: 1.247 MB / 0.5265 GB, free: 34.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/0.4186, allocations: 414.1 kB / 0.5269 GB, free: 34.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000377/0.419, allocations: 271.7 kB / 0.5272 GB, free: 34.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.912e-05/0.4191, allocations: 302.2 kB / 0.5275 GB, free: 34.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008265/0.4199, allocations: 0.6138 MB / 0.5281 GB, free: 33.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009553/0.4208, allocations: 1.146 MB / 0.5292 GB, free: 33.01 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001691/0.4225, allocations: 1.889 MB / 0.531 GB, free: 31.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4226, allocations: 3.938 kB / 0.531 GB, free: 31.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002668/0.4252, allocations: 2.02 MB / 0.533 GB, free: 30.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.4253, allocations: 15.62 kB / 0.533 GB, free: 30.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/0.4253, allocations: 15.69 kB / 0.533 GB, free: 30.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002386/0.4255, allocations: 95.2 kB / 0.5331 GB, free: 30.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.4268, allocations: 403.3 kB / 0.5335 GB, free: 30.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.542e-05/0.4269, allocations: 36.08 kB / 0.5335 GB, free: 30.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/0.428, allocations: 79.47 kB / 0.5336 GB, free: 30.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/0.4281, allocations: 67.47 kB / 0.5337 GB, free: 30.29 MB / 382.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.001238/0.4294, allocations: 0.8061 MB / 0.5345 GB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002753/0.4297, allocations: 171.6 kB / 0.5346 GB, free: 29.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002679/0.4324, allocations: 1.835 MB / 0.5364 GB, free: 28.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.4324, allocations: 13.62 kB / 0.5364 GB, free: 28.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4324, allocations: 0 / 0.5364 GB, free: 28.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.4324, allocations: 3.984 kB / 0.5364 GB, free: 28.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007711/0.4401, allocations: 5.634 MB / 0.5419 GB, free: 23.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.4402, allocations: 0 / 0.5419 GB, free: 23.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006973/0.4409, allocations: 183.7 kB / 0.5421 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.4419, allocations: 393.4 kB / 0.5425 GB, free: 22.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.103e-05/0.4419, allocations: 29.8 kB / 0.5425 GB, free: 22.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00553/0.4475, allocations: 5.187 MB / 0.5476 GB, free: 17.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00555/0.4531, allocations: 5.038 MB / 0.5525 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00373/0.4568, allocations: 2.767 MB / 0.5552 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009826/0.4578, allocations: 386.9 kB / 0.5556 GB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004382/0.4583, allocations: 23.98 kB / 0.5556 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009833/0.4593, allocations: 55.94 kB / 0.5557 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.4595, allocations: 104.8 kB / 0.5558 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-05/0.4595, allocations: 32 kB / 0.5558 GB, free: 8.797 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001591/0.4611, allocations: 1.038 MB / 0.5568 GB, free: 7.762 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4612, allocations: 0 / 0.5568 GB, free: 7.762 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001956/0.4631, allocations: 0.5061 MB / 0.5573 GB, free: 7.258 MB / 382.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.0002836/0.4634, allocations: 144.4 kB / 0.5574 GB, free: 7.109 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00213/0.4655, allocations: 1.729 MB / 0.5591 GB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4656, allocations: 5.016 kB / 0.5591 GB, free: 5.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.467, allocations: 1.113 MB / 0.5602 GB, free: 4.195 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.4691, allocations: 482 kB / 0.5607 GB, free: 3.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006733/0.4759, allocations: 4.726 MB / 0.5653 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001693/0.4776, allocations: 1.924 MB / 0.5672 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005413/0.4781, allocations: 135.3 kB / 0.5673 GB, free: 12.88 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4782, allocations: 0 / 0.5673 GB, free: 12.88 MB / 398.1 MB Notification: Performance of Templates: time 0.07327/0.5514, allocations: 58.61 MB / 0.6245 GB, free: 2.324 MB / 446.1 MB make -j1 -f BLDC_BLDC.Examples.SMPM_NominalOperation.makefile (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 & ./BLDC_BLDC.Examples.SMPM_NominalOperation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1)