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.001169/0.001169, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001571/0.001571, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1777/0.1777, allocations: 2.565 MB / 293.6 MB, free: 4.133 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0004003, allocations: 16 kB / 355.1 MB, free: 4.953 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 51 MB / 406.1 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01346/0.1194, allocations: 11.4 MB / 417.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.1298, allocations: 4.696 MB / 422.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002899/0.1328, allocations: 75.69 kB / 422.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003788/0.1366, allocations: 0.9291 MB / 423.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.209/0.3457, allocations: 1.214 MB / 424.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002609/0.3483, allocations: 0.613 MB / 425 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006355/0.3547, allocations: 2.171 MB / 427.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003283/0.358, allocations: 1.784 MB / 428.9 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002263/0.3603, allocations: 0.9766 MB / 429.9 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002214/0.3625, allocations: 1.151 MB / 431.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004258/0.363, allocations: 158.7 kB / 431.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.3643, allocations: 327.6 kB / 431.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006206/0.3649, allocations: 0.5604 MB / 432.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.366, allocations: 0.5878 MB / 432.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004957/0.371, allocations: 4.109 MB / 436.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.371, allocations: 0 / 436.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.559e-06/0.371, allocations: 4 kB / 436.8 MB, free: 34.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001101/0.3712, allocations: 2.078 kB / 436.8 MB, free: 34.37 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.01019/0.3813, allocations: 2.979 MB / 439.8 MB, free: 33.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.3814, allocations: 12.52 kB / 439.8 MB, free: 33.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004944/0.3864, allocations: 0.5524 MB / 440.4 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006707/0.3931, allocations: 1.768 MB / 442.1 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002617/0.3934, allocations: 194.4 kB / 442.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000998/0.3944, allocations: 249.1 kB / 442.6 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009541/0.404, allocations: 3.238 MB / 445.8 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.4041, allocations: 14.14 kB / 445.8 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004563/0.4046, allocations: 104.4 kB / 445.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/0.4048, allocations: 121.1 kB / 446 MB, free: 32.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005769/0.4106, allocations: 2.691 MB / 448.7 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01835/0.4289, allocations: 10.92 MB / 459.6 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003314/0.4323, allocations: 3.594 MB / 463.2 MB, free: 23.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005542/0.4379, allocations: 2.427 MB / 465.7 MB, free: 22.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.438, allocations: 46.61 kB / 465.7 MB, free: 22.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 3.436e-06/0.438, allocations: 4 kB / 465.7 MB, free: 22.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.0147/0.4527, allocations: 5.358 MB / 471.1 MB, free: 19.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008497/0.4612, allocations: 5.102 MB / 476.2 MB, free: 16.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004575/0.4658, allocations: 1.435 MB / 477.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000269/0.4662, allocations: 47.17 kB / 477.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.4673, allocations: 1.231 MB / 478.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006057/0.4679, allocations: 423.9 kB / 479.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/0.4681, allocations: 34.97 kB / 479.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.4682, allocations: 372.5 kB / 479.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.4696, allocations: 0.6178 MB / 480.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001615/0.4712, allocations: 1.133 MB / 481.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/0.4728, allocations: 0.828 MB / 482.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.657e-05/0.4728, allocations: 4.75 kB / 482.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.004393/0.4772, allocations: 2.032 MB / 484.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.453e-05/0.4773, allocations: 13.19 kB / 484.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-05/0.4773, allocations: 15.47 kB / 484.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003665/0.4777, allocations: 100.4 kB / 484.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/0.4795, allocations: 409.2 kB / 484.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-05/0.4796, allocations: 33.31 kB / 484.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.4813, allocations: 84.11 kB / 484.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.4815, allocations: 72.14 kB / 485 MB, free: 11.62 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (197): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002123/0.4837, allocations: 0.8124 MB / 485.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000621/0.4843, allocations: 165.5 kB / 486 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003961/0.4883, allocations: 1.867 MB / 487.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.4883, allocations: 15.81 kB / 487.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.4883, allocations: 5.109 kB / 487.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.4883, allocations: 7.969 kB / 487.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/0.5014, allocations: 5.661 MB / 493.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.5015, allocations: 3.094 kB / 493.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008907/0.5024, allocations: 202.3 kB / 493.7 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.5036, allocations: 391 kB / 494.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/0.5038, allocations: 28.42 kB / 494.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006235/0.51, allocations: 4.859 MB / 499 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007229/0.5173, allocations: 4.98 MB / 0.4922 GB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005338/0.5227, allocations: 2.971 MB / 0.4951 GB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001474/0.5242, allocations: 379 kB / 0.4954 GB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008246/0.5251, allocations: 31.98 kB / 0.4955 GB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.5264, allocations: 63.89 kB / 0.4955 GB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003495/0.5268, allocations: 88.88 kB / 0.4956 GB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.5269, allocations: 35.98 kB / 0.4957 GB, free: 8.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002691/0.5296, allocations: 0.9598 MB / 0.4966 GB, free: 7.773 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5296, allocations: 0 / 0.4966 GB, free: 7.773 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002835/0.5324, allocations: 0.5078 MB / 0.4971 GB, free: 7.266 MB / 366.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 (92): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003777/0.5328, allocations: 143.1 kB / 0.4972 GB, free: 7.117 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003378/0.5362, allocations: 1.741 MB / 0.4989 GB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.5363, allocations: 0 / 0.4989 GB, free: 5.332 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/0.5384, allocations: 1.132 MB / 0.5 GB, free: 4.172 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/0.5414, allocations: 439.8 kB / 0.5005 GB, free: 3.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.5545, allocations: 5.651 MB / 0.506 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002889/0.5574, allocations: 2.004 MB / 0.5079 GB, free: 11.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002147/0.5596, allocations: 382.7 kB / 0.5083 GB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005997/0.5602, allocations: 123.4 kB / 0.5084 GB, free: 11.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.272e-06/0.5602, allocations: 0 / 0.5084 GB, free: 11.48 MB / 382.1 MB Notification: Performance of Templates: time 0.04743/0.6077, allocations: 23.68 MB / 0.5315 GB, free: 4.043 MB / 398.1 MB make -j1 -f BLDC_BLDC.Examples.SMPM_NominalOperation.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: