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.006854/0.006854, allocations: 101.2 kB / 15.73 MB, free: 5.523 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.001186/0.001186, allocations: 196.7 kB / 16.67 MB, free: 5.461 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1486/0.1486, allocations: 2.577 MB / 293.1 MB, free: 3.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 91.84 kB / 405.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2713, allocations: 50.03 MB / 455.3 MB, free: 21.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01384/0.2852, allocations: 14.13 MB / 469.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.2955, allocations: 4.988 MB / 474.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00306/0.2986, allocations: 85.56 kB / 474.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002954/0.3016, allocations: 1.036 MB / 475.6 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00381/0.3055, allocations: 1.159 MB / 476.7 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.3073, allocations: 0.7781 MB / 477.5 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004131/0.3115, allocations: 3.175 MB / 480.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002919/0.3144, allocations: 2.645 MB / 483.3 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00204/0.3165, allocations: 1.374 MB / 484.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002287/0.3188, allocations: 1.625 MB / 486.3 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006253/0.3194, allocations: 392.4 kB / 486.7 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00143/0.3209, allocations: 0.5766 MB / 487.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007147/0.3216, allocations: 0.8629 MB / 488.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001932/0.3235, allocations: 1.667 MB / 489.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005796/0.3293, allocations: 5.123 MB / 494.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3294, allocations: 0 / 494.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3294, allocations: 1.375 kB / 494.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.643e-05/0.3295, allocations: 0 / 494.9 MB, free: 12.49 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.008997/0.3385, allocations: 3.489 MB / 498.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3385, allocations: 8.75 kB / 498.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002805/0.3413, allocations: 0.5565 MB / 499 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003533/0.3449, allocations: 1.835 MB / 0.4891 GB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001967/0.3451, allocations: 193.5 kB / 0.4893 GB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004613/0.3456, allocations: 260 kB / 0.4895 GB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006279/0.3519, allocations: 3.285 MB / 0.4927 GB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.251e-05/0.352, allocations: 7.844 kB / 0.4927 GB, free: 4.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.3522, allocations: 108 kB / 0.4929 GB, free: 4.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/0.3524, allocations: 121 kB / 0.493 GB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004922/0.3573, allocations: 2.717 MB / 0.4956 GB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01698/0.3743, allocations: 10.83 MB / 0.5062 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003608/0.378, allocations: 3.596 MB / 0.5097 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/0.3793, allocations: 0.8113 MB / 0.5105 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004228/0.3836, allocations: 2.4 MB / 0.5128 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.3836, allocations: 39.22 kB / 0.5129 GB, free: 14.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=81): time 2.345e-06/0.3836, allocations: 0 / 0.5129 GB, free: 14.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=117): time 0.01078/0.3944, allocations: 5.306 MB / 0.5181 GB, free: 9.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007177/0.4016, allocations: 5.17 MB / 0.5231 GB, free: 3.992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002323/0.404, allocations: 1.528 MB / 0.5246 GB, free: 2.453 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001571/0.4042, allocations: 53.7 kB / 0.5247 GB, free: 2.395 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008379/0.405, allocations: 1.25 MB / 0.5259 GB, free: 1.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003587/0.4054, allocations: 398.3 kB / 0.5263 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004285/0.4058, allocations: 275.3 kB / 0.5265 GB, free: 472 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.079e-05/0.4059, allocations: 301.1 kB / 0.5268 GB, free: 168 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009128/0.4068, allocations: 0.613 MB / 0.5274 GB, free: 15.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/0.4081, allocations: 1.142 MB / 0.5285 GB, free: 14.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002279/0.4104, allocations: 1.891 MB / 0.5304 GB, free: 12.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.4104, allocations: 4 kB / 0.5304 GB, free: 12.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003085/0.4135, allocations: 2.024 MB / 0.5323 GB, free: 10 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.4135, allocations: 12 kB / 0.5324 GB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/0.4135, allocations: 16 kB / 0.5324 GB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002579/0.4138, allocations: 93.67 kB / 0.5325 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.4153, allocations: 399.6 kB / 0.5328 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-05/0.4153, allocations: 35.86 kB / 0.5329 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.4167, allocations: 87.84 kB / 0.533 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.4168, allocations: 71.98 kB / 0.533 GB, free: 9.293 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.001498/0.4183, allocations: 0.8032 MB / 0.5338 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003761/0.4187, allocations: 177.9 kB / 0.534 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003318/0.422, allocations: 1.824 MB / 0.5358 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.422, allocations: 12 kB / 0.5358 GB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.422, allocations: 0 / 0.5358 GB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/0.4221, allocations: 7.969 kB / 0.5358 GB, free: 6.441 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009109/0.4312, allocations: 5.639 MB / 0.5413 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/0.4312, allocations: 4 kB / 0.5413 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007288/0.432, allocations: 179.7 kB / 0.5415 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.4331, allocations: 401.5 kB / 0.5418 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.6e-05/0.4331, allocations: 24 kB / 0.5419 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006947/0.4401, allocations: 5.161 MB / 0.5469 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006863/0.447, allocations: 5.066 MB / 0.5519 GB, free: 5.559 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004251/0.4513, allocations: 2.772 MB / 0.5546 GB, free: 2.727 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000809/0.4521, allocations: 382.9 kB / 0.5549 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002049/0.4523, allocations: 23.94 kB / 0.555 GB, free: 2.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000804/0.4531, allocations: 59.94 kB / 0.555 GB, free: 2.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.4533, allocations: 96.81 kB / 0.5551 GB, free: 2.156 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.265e-05/0.4534, allocations: 35.98 kB / 0.5551 GB, free: 2.121 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001491/0.4549, allocations: 1.035 MB / 0.5561 GB, free: 1.09 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4549, allocations: 4 kB / 0.5562 GB, free: 1.086 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001689/0.4566, allocations: 0.5039 MB / 0.5566 GB, free: 0.582 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.0002828/0.4569, allocations: 147 kB / 0.5568 GB, free: 440 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.4594, allocations: 1.719 MB / 0.5585 GB, free: 14.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.4594, allocations: 4.062 kB / 0.5585 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.4611, allocations: 1.128 MB / 0.5596 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/0.4633, allocations: 469.6 kB / 0.56 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007326/0.4706, allocations: 4.699 MB / 0.5646 GB, free: 8.273 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.4722, allocations: 1.953 MB / 0.5665 GB, free: 6.281 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001219/0.4734, allocations: 390.8 kB / 0.5669 GB, free: 5.895 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003633/0.4738, allocations: 119.4 kB / 0.567 GB, free: 5.777 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4738, allocations: 0 / 0.567 GB, free: 5.777 MB / 446.1 MB Notification: Performance of Templates: time 0.2476/0.7214, allocations: 27.38 MB / 0.5937 GB, free: 117.5 MB / 462.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)