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.0008763/0.0008763, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0008874/0.0008875, allocations: 168.7 kB / 15.95 MB, free: 204 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.329/1.329, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1328/0.1328, allocations: 2.57 MB / 293.7 MB, free: 4.176 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004053/0.0004054, allocations: 16 kB / 355.2 MB, free: 4.906 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1069, allocations: 51 MB / 406.2 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01328/0.1202, allocations: 12.44 MB / 418.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009035/0.1293, allocations: 4.613 MB / 423.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002645/0.132, allocations: 79.69 kB / 423.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1772/0.3093, allocations: 0.8018 MB / 424.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003333/0.3127, allocations: 0.9417 MB / 425 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001593/0.3143, allocations: 0.5483 MB / 425.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00353/0.3178, allocations: 3.018 MB / 428.6 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001956/0.3198, allocations: 1.783 MB / 430.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001406/0.3212, allocations: 1.005 MB / 431.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001398/0.3226, allocations: 1.267 MB / 432.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002495/0.3229, allocations: 166.6 kB / 432.8 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008501/0.3237, allocations: 347 kB / 433.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004213/0.3242, allocations: 0.5875 MB / 433.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000585/0.3248, allocations: 0.5841 MB / 434.3 MB, free: 33.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002778/0.3275, allocations: 4.16 MB / 438.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3276, allocations: 3.188 kB / 438.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3276, allocations: 0 / 438.5 MB, free: 33.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.394e-05/0.3277, allocations: 0 / 438.5 MB, free: 33.55 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.006006/0.3337, allocations: 2.987 MB / 441.5 MB, free: 32.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3337, allocations: 10.09 kB / 441.5 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002584/0.3363, allocations: 0.5567 MB / 442 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002609/0.3389, allocations: 1.742 MB / 443.8 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.3391, allocations: 191.1 kB / 444 MB, free: 31.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003454/0.3394, allocations: 258.3 kB / 444.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004766/0.3442, allocations: 3.26 MB / 447.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.543e-05/0.3443, allocations: 2.875 kB / 447.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002101/0.3445, allocations: 107.5 kB / 447.6 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/0.3446, allocations: 121.2 kB / 447.7 MB, free: 31.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003849/0.3485, allocations: 2.7 MB / 450.4 MB, free: 31.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01252/0.361, allocations: 11 MB / 461.4 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002983/0.364, allocations: 3.588 MB / 465 MB, free: 21.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.3654, allocations: 0.8396 MB / 465.8 MB, free: 21.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003885/0.3693, allocations: 2.409 MB / 468.2 MB, free: 19.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3693, allocations: 43.16 kB / 468.3 MB, free: 19.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.735e-06/0.3693, allocations: 0 / 468.3 MB, free: 19.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.0104/0.3797, allocations: 5.282 MB / 473.6 MB, free: 17.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006858/0.3866, allocations: 5.004 MB / 478.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003071/0.3897, allocations: 1.515 MB / 480.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001589/0.3899, allocations: 42.77 kB / 480.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008659/0.3908, allocations: 1.253 MB / 481.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003278/0.3911, allocations: 405.6 kB / 481.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.172e-05/0.3912, allocations: 30.34 kB / 481.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.455e-05/0.3914, allocations: 366.6 kB / 482.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/0.3923, allocations: 0.6059 MB / 482.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.3935, allocations: 1.136 MB / 483.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.3948, allocations: 0.809 MB / 484.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-05/0.3948, allocations: 4.375 kB / 484.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003094/0.3979, allocations: 2.002 MB / 486.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.3979, allocations: 16.33 kB / 486.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/0.398, allocations: 20.59 kB / 486.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.3982, allocations: 97.86 kB / 486.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.3996, allocations: 393.1 kB / 487.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-05/0.3997, allocations: 36.89 kB / 487.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.4009, allocations: 91.22 kB / 487.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.401, allocations: 71.77 kB / 487.4 MB, free: 9.383 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 (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.001363/0.4024, allocations: 0.8 MB / 488.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.4027, allocations: 169.2 kB / 488.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002985/0.4057, allocations: 1.834 MB / 490.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.4058, allocations: 12.28 kB / 490.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.4058, allocations: 0 / 490.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4058, allocations: 3.984 kB / 490.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008279/0.4141, allocations: 5.617 MB / 495.9 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.4141, allocations: 8.031 kB / 495.9 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007051/0.4148, allocations: 186.3 kB / 496.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/0.4159, allocations: 397.4 kB / 496.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-05/0.416, allocations: 23.98 kB / 496.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005906/0.4219, allocations: 4.755 MB / 0.4895 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006967/0.4289, allocations: 4.893 MB / 0.4943 GB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004421/0.4333, allocations: 2.745 MB / 0.4969 GB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009255/0.4343, allocations: 394.9 kB / 0.4973 GB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000386/0.4347, allocations: 20 kB / 0.4973 GB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009122/0.4356, allocations: 64.09 kB / 0.4974 GB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.4358, allocations: 92.86 kB / 0.4975 GB, free: 5.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.591e-05/0.4359, allocations: 38.5 kB / 0.4975 GB, free: 5.699 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001809/0.4377, allocations: 1.019 MB / 0.4985 GB, free: 4.684 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4377, allocations: 0 / 0.4985 GB, free: 4.684 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002004/0.4397, allocations: 0.5117 MB / 0.499 GB, free: 4.172 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 (87): * Single equations (assignments): 85 * 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.000285/0.44, allocations: 151.5 kB / 0.4992 GB, free: 4.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.4428, allocations: 1.701 MB / 0.5008 GB, free: 2.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.4428, allocations: 1.875 kB / 0.5008 GB, free: 2.277 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.4447, allocations: 1.121 MB / 0.5019 GB, free: 1.121 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.4471, allocations: 448.8 kB / 0.5023 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009165/0.4562, allocations: 5.617 MB / 0.5078 GB, free: 11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002247/0.4585, allocations: 1.961 MB / 0.5097 GB, free: 8.996 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00176/0.4603, allocations: 378.9 kB / 0.5101 GB, free: 8.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005616/0.4609, allocations: 123.4 kB / 0.5102 GB, free: 8.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4609, allocations: 7.938 kB / 0.5102 GB, free: 8.492 MB / 382.1 MB Notification: Performance of Templates: time 0.04482/0.5057, allocations: 24.4 MB / 0.5341 GB, free: 340 kB / 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: