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.006929/0.006934, allocations: 97.38 kB / 15.73 MB, free: 5.949 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.001373/0.001373, allocations: 193 kB / 16.67 MB, free: 5.871 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01262/0.01262, allocations: 2.588 MB / 293.1 MB, free: 12.14 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 107.8 kB / 405.3 MB, free: 29.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1173, allocations: 50.04 MB / 455.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01632/0.1337, allocations: 14.13 MB / 469.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.1448, allocations: 4.972 MB / 474.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003127/0.148, allocations: 87.69 kB / 474.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003358/0.1513, allocations: 1.095 MB / 475.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00406/0.1555, allocations: 1.196 MB / 476.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00204/0.1576, allocations: 0.7753 MB / 477.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005199/0.1628, allocations: 3.172 MB / 480.8 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005122/0.1679, allocations: 2.659 MB / 483.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002871/0.1708, allocations: 1.374 MB / 484.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00353/0.1743, allocations: 1.615 MB / 486.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001261/0.1756, allocations: 388 kB / 486.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002735/0.1784, allocations: 0.5857 MB / 487.4 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001899/0.1803, allocations: 0.8686 MB / 488.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00426/0.1846, allocations: 1.661 MB / 489.9 MB, free: 8.551 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007489/0.1921, allocations: 5.134 MB / 495.1 MB, free: 3.398 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1921, allocations: 0 / 495.1 MB, free: 3.398 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1921, allocations: 0 / 495.1 MB, free: 3.398 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.7e-05/0.1922, allocations: 0 / 495.1 MB, free: 3.398 MB / 366.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.008005/0.2002, allocations: 3.56 MB / 498.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.2003, allocations: 16.03 kB / 498.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00254/0.2028, allocations: 0.5611 MB / 499.2 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003036/0.2059, allocations: 1.856 MB / 0.4893 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.206, allocations: 193.5 kB / 0.4895 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003734/0.2064, allocations: 256.9 kB / 0.4898 GB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005391/0.2118, allocations: 3.285 MB / 0.493 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.505e-05/0.2119, allocations: 7.938 kB / 0.493 GB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002483/0.2121, allocations: 100 kB / 0.4931 GB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.2123, allocations: 129 kB / 0.4932 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004317/0.2166, allocations: 2.717 MB / 0.4958 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3034/0.52, allocations: 10.84 MB / 0.5064 GB, free: 45.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002961/0.523, allocations: 3.612 MB / 0.51 GB, free: 42.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.5242, allocations: 0.8121 MB / 0.5107 GB, free: 42.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003873/0.5281, allocations: 2.407 MB / 0.5131 GB, free: 41.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.5282, allocations: 43.39 kB / 0.5131 GB, free: 41.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.234e-06/0.5282, allocations: 0 / 0.5131 GB, free: 41.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.01144/0.5396, allocations: 5.333 MB / 0.5183 GB, free: 39.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006662/0.5463, allocations: 5.185 MB / 0.5234 GB, free: 36.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002092/0.5484, allocations: 1.527 MB / 0.5249 GB, free: 35.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.5486, allocations: 45.67 kB / 0.5249 GB, free: 35.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007/0.5493, allocations: 1.279 MB / 0.5262 GB, free: 34.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002834/0.5496, allocations: 421.1 kB / 0.5266 GB, free: 34.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004004/0.55, allocations: 278.9 kB / 0.5269 GB, free: 34.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.226e-05/0.55, allocations: 306.1 kB / 0.5272 GB, free: 34.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008673/0.5509, allocations: 0.6205 MB / 0.5278 GB, free: 33.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009795/0.5519, allocations: 1.137 MB / 0.5289 GB, free: 32.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.5537, allocations: 1.901 MB / 0.5307 GB, free: 31.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.5537, allocations: 3.938 kB / 0.5307 GB, free: 31.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002759/0.5565, allocations: 2.029 MB / 0.5327 GB, free: 30.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.5565, allocations: 12.53 kB / 0.5327 GB, free: 30.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.797e-05/0.5565, allocations: 16.16 kB / 0.5327 GB, free: 30.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002461/0.5568, allocations: 92.61 kB / 0.5328 GB, free: 30.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001251/0.5581, allocations: 395.2 kB / 0.5332 GB, free: 30.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.532e-05/0.5581, allocations: 46.52 kB / 0.5332 GB, free: 30.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.5592, allocations: 77.31 kB / 0.5333 GB, free: 30.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.678e-05/0.5593, allocations: 74.8 kB / 0.5334 GB, free: 30.03 MB / 382.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.001236/0.5605, allocations: 0.8058 MB / 0.5342 GB, free: 29.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/0.5608, allocations: 175.5 kB / 0.5343 GB, free: 29.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002631/0.5634, allocations: 1.837 MB / 0.5361 GB, free: 28.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.749e-06/0.5634, allocations: 11 kB / 0.5361 GB, free: 28.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.5634, allocations: 3.938 kB / 0.5362 GB, free: 28.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.5635, allocations: 7.969 kB / 0.5362 GB, free: 28.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007375/0.5708, allocations: 5.617 MB / 0.5416 GB, free: 22.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.5709, allocations: 11.97 kB / 0.5417 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006976/0.5716, allocations: 183.7 kB / 0.5418 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/0.5726, allocations: 393.4 kB / 0.5422 GB, free: 22.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.124e-05/0.5727, allocations: 23.98 kB / 0.5422 GB, free: 22.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005673/0.5784, allocations: 5.185 MB / 0.5473 GB, free: 17.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005412/0.5838, allocations: 5.071 MB / 0.5522 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003631/0.5875, allocations: 2.769 MB / 0.5549 GB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007228/0.5882, allocations: 391.9 kB / 0.5553 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.5884, allocations: 27.92 kB / 0.5554 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007498/0.5891, allocations: 59.94 kB / 0.5554 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.5894, allocations: 96.81 kB / 0.5555 GB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.033e-05/0.5894, allocations: 35.98 kB / 0.5555 GB, free: 8.418 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001231/0.5907, allocations: 1.031 MB / 0.5565 GB, free: 7.391 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5907, allocations: 0 / 0.5565 GB, free: 7.391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001785/0.5925, allocations: 0.5155 MB / 0.557 GB, free: 6.875 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.0002755/0.5927, allocations: 139.1 kB / 0.5572 GB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.5949, allocations: 1.718 MB / 0.5589 GB, free: 4.973 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.595, allocations: 448 / 0.5589 GB, free: 4.973 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001422/0.5964, allocations: 1.128 MB / 0.56 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.5982, allocations: 477.3 kB / 0.5604 GB, free: 3.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007237/0.6054, allocations: 4.785 MB / 0.5651 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/0.6071, allocations: 1.96 MB / 0.567 GB, free: 12.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001342/0.6085, allocations: 378.8 kB / 0.5674 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000342/0.6088, allocations: 123.4 kB / 0.5675 GB, free: 12.04 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6088, allocations: 4 kB / 0.5675 GB, free: 12.03 MB / 398.1 MB Notification: Performance of Templates: time 0.05018/0.659, allocations: 26.93 MB / 0.5938 GB, free: 1.375 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)