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.00118/0.00118, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001828/0.001827, allocations: 189.7 kB / 16.25 MB, free: 6.625 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.428/1.428, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.129/0.129, allocations: 2.574 MB / 292.7 MB, free: 3.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 83.86 kB / 353.5 MB, free: 5.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1275, allocations: 50.04 MB / 403.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.0162/0.1438, allocations: 13.97 MB / 417.5 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01014/0.154, allocations: 4.891 MB / 422.4 MB, free: 256 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003394/0.1574, allocations: 83.69 kB / 422.5 MB, free: 172 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2317/0.3891, allocations: 0.9243 MB / 423.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005562/0.3948, allocations: 1.033 MB / 424.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002134/0.3969, allocations: 0.7206 MB / 425.2 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004313/0.4013, allocations: 3.157 MB / 428.4 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002596/0.4039, allocations: 2.652 MB / 431 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001874/0.4058, allocations: 1.375 MB / 432.4 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001651/0.4074, allocations: 1.619 MB / 434 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004132/0.4079, allocations: 391.9 kB / 434.4 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.4089, allocations: 0.5873 MB / 435 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005212/0.4095, allocations: 0.8735 MB / 435.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001505/0.411, allocations: 1.662 MB / 437.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004035/0.415, allocations: 5.075 MB / 442.6 MB, free: 31.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.415, allocations: 0 / 442.6 MB, free: 31.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4151, allocations: 0 / 442.6 MB, free: 31.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001176/0.4152, allocations: 0 / 442.6 MB, free: 31.45 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.007447/0.4226, allocations: 3.487 MB / 446.1 MB, free: 29.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.4227, allocations: 12.06 kB / 446.1 MB, free: 29.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002577/0.4253, allocations: 0.5623 MB / 446.6 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003061/0.4284, allocations: 1.786 MB / 448.4 MB, free: 28.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.4285, allocations: 192.1 kB / 448.6 MB, free: 28.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003769/0.4289, allocations: 256.1 kB / 448.9 MB, free: 28.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005033/0.4339, allocations: 3.28 MB / 452.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.02e-05/0.434, allocations: 11.09 kB / 452.2 MB, free: 26.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.4342, allocations: 105.1 kB / 452.3 MB, free: 26.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/0.4344, allocations: 124.1 kB / 452.4 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003936/0.4383, allocations: 2.716 MB / 455.1 MB, free: 25.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/0.4561, allocations: 10.94 MB / 466 MB, free: 19.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003937/0.4601, allocations: 3.608 MB / 469.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001855/0.462, allocations: 0.8349 MB / 470.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004757/0.4668, allocations: 2.406 MB / 472.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.4669, allocations: 39.48 kB / 472.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 3.376e-06/0.4669, allocations: 0 / 472.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01075/0.4777, allocations: 5.304 MB / 478.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006655/0.4843, allocations: 5.175 MB / 483.4 MB, free: 8.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002355/0.4867, allocations: 1.525 MB / 484.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001712/0.4869, allocations: 46.36 kB / 485 MB, free: 7.605 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007161/0.4876, allocations: 1.249 MB / 486.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003013/0.4879, allocations: 399.4 kB / 486.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003946/0.4883, allocations: 281.9 kB / 486.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.429e-05/0.4884, allocations: 306.8 kB / 487.2 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007985/0.4892, allocations: 0.6144 MB / 487.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.4902, allocations: 1.144 MB / 489 MB, free: 4.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00183/0.4921, allocations: 1.888 MB / 490.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.4921, allocations: 5.5 kB / 490.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002899/0.495, allocations: 2.015 MB / 492.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.495, allocations: 15.97 kB / 492.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/0.495, allocations: 21.25 kB / 492.9 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.4953, allocations: 94 kB / 493 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.4966, allocations: 396.9 kB / 493.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.343e-05/0.4967, allocations: 41.98 kB / 493.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.4983, allocations: 80.94 kB / 493.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.4984, allocations: 80.22 kB / 493.6 MB, free: 2.355 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.0017/0.5001, allocations: 0.8022 MB / 494.4 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003566/0.5005, allocations: 169.9 kB / 494.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002906/0.5034, allocations: 1.832 MB / 496.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.5034, allocations: 12 kB / 496.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.822e-06/0.5034, allocations: 0 / 496.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.5035, allocations: 3.984 kB / 496.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.5135, allocations: 5.642 MB / 0.4903 GB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.5136, allocations: 4 kB / 0.4903 GB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007609/0.5143, allocations: 175.8 kB / 0.4904 GB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.5156, allocations: 405.5 kB / 0.4908 GB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.621e-05/0.5157, allocations: 24 kB / 0.4908 GB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007455/0.5231, allocations: 5.178 MB / 0.4959 GB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007429/0.5306, allocations: 5.072 MB / 0.5009 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004515/0.5352, allocations: 2.758 MB / 0.5036 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.5363, allocations: 391 kB / 0.5039 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002328/0.5366, allocations: 20 kB / 0.5039 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007975/0.5374, allocations: 63.88 kB / 0.504 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002873/0.5377, allocations: 92.8 kB / 0.5041 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.375e-05/0.5378, allocations: 36 kB / 0.5041 GB, free: 11.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001676/0.5394, allocations: 1.038 MB / 0.5051 GB, free: 10.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5395, allocations: 0 / 0.5051 GB, free: 10.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002013/0.5415, allocations: 0.5078 MB / 0.5056 GB, free: 9.73 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.0003055/0.5418, allocations: 142.7 kB / 0.5058 GB, free: 9.586 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003528/0.5453, allocations: 1.991 MB / 0.5077 GB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.002e-06/0.5453, allocations: 0 / 0.5077 GB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001718/0.5471, allocations: 1.125 MB / 0.5088 GB, free: 6.391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/0.5496, allocations: 469.7 kB / 0.5093 GB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009753/0.5594, allocations: 5.868 MB / 0.515 GB, free: 16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002075/0.5615, allocations: 1.957 MB / 0.5169 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001702/0.5632, allocations: 382.8 kB / 0.5173 GB, free: 13.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/0.5636, allocations: 119.4 kB / 0.5174 GB, free: 13.51 MB / 398.1 MB Notification: Performance of SimCode: time 2.264e-06/0.5636, allocations: 3.938 kB / 0.5174 GB, free: 13.5 MB / 398.1 MB Notification: Performance of Templates: time 0.04914/0.6128, allocations: 26.41 MB / 0.5432 GB, free: 3.359 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)