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.001479/0.001479, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.423/1.423, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1339/0.1339, allocations: 2.572 MB / 293 MB, free: 3.531 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 91.86 kB / 354 MB, free: 4.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08928, allocations: 50.03 MB / 404.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01657/0.1059, allocations: 14.12 MB / 418.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1763/0.2822, allocations: 4.971 MB / 423.2 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002703/0.285, allocations: 87.69 kB / 423.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00339/0.2884, allocations: 1.04 MB / 424.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003648/0.2921, allocations: 1.16 MB / 425.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001901/0.294, allocations: 0.7734 MB / 426.2 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003752/0.2978, allocations: 3.148 MB / 429.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003169/0.301, allocations: 2.654 MB / 432 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001797/0.3028, allocations: 1.367 MB / 433.4 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00217/0.305, allocations: 1.607 MB / 435 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000754/0.3058, allocations: 388.2 kB / 435.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001526/0.3073, allocations: 0.5903 MB / 436 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007203/0.308, allocations: 0.8671 MB / 436.8 MB, free: 34.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.3099, allocations: 1.665 MB / 438.5 MB, free: 32.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004107/0.314, allocations: 5.071 MB / 443.6 MB, free: 31.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.314, allocations: 3.328 kB / 443.6 MB, free: 31.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.314, allocations: 0 / 443.6 MB, free: 31.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001104/0.3142, allocations: 0 / 443.6 MB, free: 31.24 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.007989/0.3221, allocations: 3.486 MB / 447.1 MB, free: 29.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3222, allocations: 9.719 kB / 447.1 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002736/0.325, allocations: 0.5608 MB / 447.6 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/0.328, allocations: 1.782 MB / 449.4 MB, free: 28.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/0.3281, allocations: 190.8 kB / 449.6 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004576/0.3286, allocations: 264.9 kB / 449.9 MB, free: 27.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004821/0.3334, allocations: 3.276 MB / 453.1 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.373e-05/0.3335, allocations: 18.72 kB / 453.2 MB, free: 26.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002124/0.3337, allocations: 100.8 kB / 453.3 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.914e-05/0.3339, allocations: 118.7 kB / 453.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003933/0.3378, allocations: 2.715 MB / 456.1 MB, free: 25.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/0.3526, allocations: 10.96 MB / 467 MB, free: 18.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003053/0.3557, allocations: 3.607 MB / 470.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001409/0.3571, allocations: 0.8322 MB / 471.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004113/0.3612, allocations: 2.398 MB / 473.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.3613, allocations: 44.3 kB / 473.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.795e-06/0.3613, allocations: 0 / 473.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01078/0.3721, allocations: 5.305 MB / 479.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006661/0.3788, allocations: 5.185 MB / 484.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002174/0.381, allocations: 1.528 MB / 485.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001552/0.3812, allocations: 45.83 kB / 486 MB, free: 7.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006366/0.3818, allocations: 1.248 MB / 487.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.3821, allocations: 406.3 kB / 487.6 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003903/0.3825, allocations: 274.6 kB / 487.9 MB, free: 5.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.764e-05/0.3826, allocations: 312.1 kB / 488.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000849/0.3834, allocations: 0.6084 MB / 488.8 MB, free: 5.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.3845, allocations: 1.144 MB / 490 MB, free: 4.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.3864, allocations: 1.886 MB / 491.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.3865, allocations: 5.188 kB / 491.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002993/0.3895, allocations: 2.02 MB / 493.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.3895, allocations: 18.44 kB / 493.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.3895, allocations: 15.03 kB / 493.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.3898, allocations: 95.3 kB / 494 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.3911, allocations: 402.6 kB / 494.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.396e-05/0.3912, allocations: 35.86 kB / 494.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.3925, allocations: 83.84 kB / 494.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.3927, allocations: 72.08 kB / 494.6 MB, free: 1.656 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.001252/0.3939, allocations: 0.8134 MB / 495.4 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003692/0.3943, allocations: 173.9 kB / 495.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003183/0.3975, allocations: 1.816 MB / 497.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.119e-05/0.3975, allocations: 16 kB / 497.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3976, allocations: 0 / 497.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.3976, allocations: 15.97 kB / 497.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.4079, allocations: 5.632 MB / 0.4912 GB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.4079, allocations: 0 / 0.4912 GB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008449/0.4088, allocations: 179.8 kB / 0.4914 GB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.4101, allocations: 400.1 kB / 0.4918 GB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.4103, allocations: 27.98 kB / 0.4918 GB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007516/0.4178, allocations: 5.176 MB / 0.4969 GB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007531/0.4254, allocations: 5.059 MB / 0.5018 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004588/0.43, allocations: 2.769 MB / 0.5045 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009239/0.4309, allocations: 382.9 kB / 0.5049 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004267/0.4314, allocations: 28 kB / 0.5049 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009781/0.4324, allocations: 59.94 kB / 0.505 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.4326, allocations: 96.81 kB / 0.5051 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.769e-05/0.4327, allocations: 35.98 kB / 0.5051 GB, free: 10.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001781/0.4345, allocations: 1.035 MB / 0.5061 GB, free: 9.484 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4345, allocations: 0 / 0.5061 GB, free: 9.484 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001997/0.4365, allocations: 0.5 MB / 0.5066 GB, free: 8.984 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.0003001/0.4368, allocations: 154 kB / 0.5067 GB, free: 8.828 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003709/0.4405, allocations: 1.984 MB / 0.5087 GB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.4406, allocations: 8.062 kB / 0.5087 GB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001869/0.4424, allocations: 1.132 MB / 0.5098 GB, free: 5.625 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002461/0.4449, allocations: 466.8 kB / 0.5102 GB, free: 5.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008476/0.4534, allocations: 4.752 MB / 0.5149 GB, free: 356 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00197/0.4554, allocations: 1.953 MB / 0.5168 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001482/0.4569, allocations: 386.8 kB / 0.5172 GB, free: 13.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004318/0.4574, allocations: 123.4 kB / 0.5173 GB, free: 13.86 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4574, allocations: 0 / 0.5173 GB, free: 13.86 MB / 398.1 MB Notification: Performance of Templates: time 0.04936/0.5067, allocations: 26.45 MB / 0.5431 GB, free: 3.676 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)