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.00112/0.00112, allocations: 112.6 kB / 16.37 MB, free: 6 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.001158/0.001158, allocations: 196 kB / 17.31 MB, free: 5.613 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.292/1.292, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01304/0.01304, allocations: 2.595 MB / 293.8 MB, free: 12.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 95.86 kB / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1794, allocations: 50.03 MB / 405.5 MB, free: 33.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.0106/0.19, allocations: 14.14 MB / 419.7 MB, free: 19.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006648/0.1967, allocations: 4.993 MB / 424.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001528/0.1982, allocations: 83.69 kB / 424.7 MB, free: 14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002144/0.2004, allocations: 1.04 MB / 425.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002494/0.2029, allocations: 1.153 MB / 426.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.2044, allocations: 0.778 MB / 427.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002624/0.207, allocations: 3.164 MB / 430.9 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002163/0.2092, allocations: 2.644 MB / 433.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001161/0.2104, allocations: 1.37 MB / 434.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.2118, allocations: 1.619 MB / 436.5 MB, free: 2.129 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000418/0.2123, allocations: 388 kB / 436.9 MB, free: 1.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008704/0.2131, allocations: 0.5818 MB / 437.5 MB, free: 1.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005079/0.2137, allocations: 0.8647 MB / 438.3 MB, free: 308 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001559/0.2152, allocations: 1.669 MB / 440 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004472/0.2197, allocations: 5.107 MB / 445.1 MB, free: 9.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2197, allocations: 0 / 445.1 MB, free: 9.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2197, allocations: 4 kB / 445.1 MB, free: 9.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.666e-05/0.2198, allocations: 4 kB / 445.1 MB, free: 9.496 MB / 318.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.007525/0.2273, allocations: 3.49 MB / 448.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.2274, allocations: 8.031 kB / 448.6 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002637/0.23, allocations: 0.5478 MB / 449.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00327/0.2333, allocations: 1.855 MB / 451 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.2335, allocations: 193.5 kB / 451.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004131/0.2339, allocations: 256.1 kB / 451.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005226/0.2391, allocations: 3.281 MB / 454.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.059e-05/0.2392, allocations: 3.906 kB / 454.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002312/0.2395, allocations: 104 kB / 454.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.2396, allocations: 125 kB / 455 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004447/0.244, allocations: 2.717 MB / 457.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01509/0.2591, allocations: 10.82 MB / 468.5 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003387/0.2626, allocations: 3.612 MB / 472.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001327/0.2639, allocations: 0.8309 MB / 472.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004155/0.2681, allocations: 2.404 MB / 475.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.2681, allocations: 43.22 kB / 475.4 MB, free: 10 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.524e-06/0.2681, allocations: 0 / 475.4 MB, free: 10 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01054/0.2787, allocations: 5.288 MB / 480.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007315/0.286, allocations: 5.17 MB / 485.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002098/0.2881, allocations: 1.528 MB / 487.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.2883, allocations: 41.7 kB / 487.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008061/0.2891, allocations: 1.25 MB / 488.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003193/0.2894, allocations: 402.2 kB / 489 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004153/0.2898, allocations: 279.2 kB / 489.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.727e-05/0.2899, allocations: 301.1 kB / 489.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009092/0.2909, allocations: 0.6169 MB / 490.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.2921, allocations: 1.138 MB / 491.4 MB, free: 9.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/0.2944, allocations: 1.894 MB / 493.3 MB, free: 7.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.2944, allocations: 4 kB / 493.3 MB, free: 7.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003105/0.2976, allocations: 2.02 MB / 495.3 MB, free: 5.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.2976, allocations: 12 kB / 495.3 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.2976, allocations: 20 kB / 495.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002656/0.2979, allocations: 102.2 kB / 495.4 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.2993, allocations: 391.4 kB / 495.8 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.035e-05/0.2994, allocations: 35.86 kB / 495.8 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.3005, allocations: 79.94 kB / 495.9 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.3006, allocations: 71.98 kB / 496 MB, free: 4.609 MB / 366.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.001187/0.3018, allocations: 0.8095 MB / 496.8 MB, free: 3.789 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002437/0.302, allocations: 169.9 kB / 497 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003208/0.3052, allocations: 1.836 MB / 498.8 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.3053, allocations: 16 kB / 498.8 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3053, allocations: 3.984 kB / 498.8 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.3053, allocations: 3.984 kB / 498.8 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00882/0.3141, allocations: 5.627 MB / 0.4926 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.3142, allocations: 7.984 kB / 0.4926 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008125/0.315, allocations: 175.8 kB / 0.4928 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.3161, allocations: 393.7 kB / 0.4932 GB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.037e-05/0.3162, allocations: 32 kB / 0.4932 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006994/0.3232, allocations: 5.165 MB / 0.4982 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007016/0.3303, allocations: 5.069 MB / 0.5032 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1523/0.4826, allocations: 2.757 MB / 0.5059 GB, free: 95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000843/0.4835, allocations: 387.9 kB / 0.5063 GB, free: 94.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003078/0.4838, allocations: 22.59 kB / 0.5063 GB, free: 94.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008916/0.4847, allocations: 62.77 kB / 0.5063 GB, free: 94.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.485, allocations: 90.88 kB / 0.5064 GB, free: 94.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.194e-05/0.485, allocations: 31.3 kB / 0.5065 GB, free: 94.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001468/0.4865, allocations: 1.036 MB / 0.5075 GB, free: 94.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.4865, allocations: 3.25 kB / 0.5075 GB, free: 94.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001544/0.4881, allocations: 0.5164 MB / 0.508 GB, free: 94.66 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.000247/0.4883, allocations: 137.2 kB / 0.5081 GB, free: 94.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002352/0.4907, allocations: 1.718 MB / 0.5098 GB, free: 93.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4907, allocations: 1.25 kB / 0.5098 GB, free: 93.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.4923, allocations: 1.127 MB / 0.5109 GB, free: 93.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/0.4941, allocations: 472.1 kB / 0.5113 GB, free: 93.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006169/0.5003, allocations: 4.704 MB / 0.5159 GB, free: 90.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001181/0.5015, allocations: 1.964 MB / 0.5178 GB, free: 89.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001034/0.5025, allocations: 382.5 kB / 0.5182 GB, free: 89.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003338/0.5029, allocations: 124.6 kB / 0.5183 GB, free: 89.72 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5029, allocations: 0 / 0.5183 GB, free: 89.72 MB / 382.1 MB Notification: Performance of Templates: time 0.03467/0.5375, allocations: 26.4 MB / 0.5441 GB, free: 65.48 MB / 382.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 -s cvode -lv LOG_STATS > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1)