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.001027/0.001027, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001103/0.001103, allocations: 193.8 kB / 16.13 MB, free: 6.652 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.292/1.292, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1239/0.1239, allocations: 2.576 MB / 292.5 MB, free: 3.414 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 91.86 kB / 353.4 MB, free: 5.414 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0862/0.08761, allocations: 50.04 MB / 403.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01424/0.1019, allocations: 13.96 MB / 417.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00865/0.1106, allocations: 4.922 MB / 422.3 MB, free: 384 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002705/0.1133, allocations: 87.56 kB / 422.4 MB, free: 296 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1824/0.2958, allocations: 0.9157 MB / 423.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005391/0.3012, allocations: 1.052 MB / 424.3 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002126/0.3034, allocations: 0.7178 MB / 425 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003984/0.3074, allocations: 3.224 MB / 428.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00268/0.3101, allocations: 2.213 MB / 430.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001883/0.312, allocations: 1.196 MB / 431.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001914/0.3139, allocations: 1.531 MB / 433.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004632/0.3144, allocations: 235.5 kB / 433.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001102/0.3155, allocations: 451.3 kB / 433.9 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005165/0.3161, allocations: 0.7092 MB / 434.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001607/0.3177, allocations: 1.51 MB / 436.1 MB, free: 34.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003349/0.321, allocations: 4.968 MB / 441.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3211, allocations: 0.8438 kB / 441.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3211, allocations: 0 / 441.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.911e-05/0.3212, allocations: 3.938 kB / 441.1 MB, free: 32.34 MB / 350.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.007006/0.3282, allocations: 3.49 MB / 444.6 MB, free: 30.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.3282, allocations: 9.625 kB / 444.6 MB, free: 30.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002458/0.3307, allocations: 0.5578 MB / 445.1 MB, free: 30.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/0.3332, allocations: 1.784 MB / 446.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.3333, allocations: 188.3 kB / 447.1 MB, free: 29.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003795/0.3337, allocations: 264.5 kB / 447.4 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004768/0.3385, allocations: 3.281 MB / 450.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.868e-05/0.3386, allocations: 7.844 kB / 450.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002053/0.3388, allocations: 114 kB / 450.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000112/0.3389, allocations: 125.1 kB / 450.9 MB, free: 27.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003768/0.3427, allocations: 2.714 MB / 453.6 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01312/0.3558, allocations: 10.94 MB / 464.5 MB, free: 19.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002776/0.3586, allocations: 3.615 MB / 468.1 MB, free: 16.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.3598, allocations: 0.8322 MB / 469 MB, free: 16.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003789/0.3636, allocations: 2.397 MB / 471.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.3637, allocations: 41.97 kB / 471.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.916e-06/0.3637, allocations: 1.375 kB / 471.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01067/0.3744, allocations: 5.289 MB / 476.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006956/0.3814, allocations: 5.018 MB / 481.7 MB, free: 9.324 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/0.3837, allocations: 1.523 MB / 483.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.3838, allocations: 47.08 kB / 483.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006518/0.3845, allocations: 1.252 MB / 484.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.3848, allocations: 402.8 kB / 484.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003604/0.3851, allocations: 276.6 kB / 485.2 MB, free: 7.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.908e-05/0.3852, allocations: 305.1 kB / 485.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007749/0.386, allocations: 0.6115 MB / 486.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.387, allocations: 1.142 MB / 487.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.3889, allocations: 1.898 MB / 489.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.3889, allocations: 4.938 kB / 489.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002762/0.3917, allocations: 2.015 MB / 491.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.3917, allocations: 10.34 kB / 491.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.3917, allocations: 17.84 kB / 491.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/0.392, allocations: 102.6 kB / 491.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.3932, allocations: 394.5 kB / 491.7 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.506e-05/0.3933, allocations: 40.61 kB / 491.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.3944, allocations: 84.22 kB / 491.8 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.126e-05/0.3945, allocations: 69.77 kB / 491.9 MB, free: 3.414 MB / 350.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.001185/0.3957, allocations: 0.8113 MB / 492.7 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002332/0.3959, allocations: 169.3 kB / 492.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002577/0.3985, allocations: 1.831 MB / 494.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3985, allocations: 12 kB / 494.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3986, allocations: 0 / 494.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.3986, allocations: 7.984 kB / 494.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00953/0.4081, allocations: 5.637 MB / 0.4886 GB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.4082, allocations: 0 / 0.4886 GB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007515/0.4089, allocations: 184.1 kB / 0.4888 GB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.4102, allocations: 405.3 kB / 0.4892 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.29e-05/0.4103, allocations: 27.98 kB / 0.4892 GB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006705/0.417, allocations: 4.75 MB / 0.4938 GB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006905/0.4239, allocations: 4.919 MB / 0.4986 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004496/0.4284, allocations: 2.754 MB / 0.5013 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008115/0.4293, allocations: 386.9 kB / 0.5017 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/0.4295, allocations: 24 kB / 0.5017 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007591/0.4303, allocations: 64 kB / 0.5018 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.4306, allocations: 96.67 kB / 0.5019 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.991e-05/0.4306, allocations: 32 kB / 0.5019 GB, free: 13.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001665/0.4323, allocations: 1.035 MB / 0.5029 GB, free: 12.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4323, allocations: 0 / 0.5029 GB, free: 12.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00222/0.4346, allocations: 0.5117 MB / 0.5034 GB, free: 11.98 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.0003901/0.435, allocations: 142.8 kB / 0.5036 GB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002795/0.4378, allocations: 1.713 MB / 0.5052 GB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4378, allocations: 5.875 kB / 0.5052 GB, free: 10.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.4395, allocations: 1.116 MB / 0.5063 GB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/0.4416, allocations: 455.1 kB / 0.5068 GB, free: 8.496 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008082/0.4497, allocations: 5.87 MB / 0.5125 GB, free: 2.551 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001477/0.4512, allocations: 1.961 MB / 0.5144 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001334/0.4526, allocations: 374.9 kB / 0.5148 GB, free: 188 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/0.4529, allocations: 123.4 kB / 0.5149 GB, free: 64 kB / 382.1 MB Notification: Performance of SimCode: time 5.92e-07/0.4529, allocations: 0 / 0.5149 GB, free: 64 kB / 382.1 MB Notification: Performance of Templates: time 0.04334/0.4963, allocations: 25.38 MB / 0.5397 GB, free: 6.918 MB / 414.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)