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/BLDC 1.9.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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/BLDC 1.9.0/package.mo): time 0.01137/0.01137, allocations: 2.593 MB / 18.39 MB, free: 3.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009567/0.0009568, allocations: 180.7 kB / 19.86 MB, free: 1.875 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.241/1.241, allocations: 222.9 MB / 244.1 MB, free: 7.715 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 105 kB / 294.9 MB, free: 8.102 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 79.81 kB / 355.8 MB, free: 11.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.169/0.1704, allocations: 50.03 MB / 405.8 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01005/0.1805, allocations: 13.97 MB / 419.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005552/0.186, allocations: 4.922 MB / 424.7 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009429/0.187, allocations: 87.62 kB / 424.8 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.1887, allocations: 0.9323 MB / 425.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001808/0.1906, allocations: 1.043 MB / 426.8 MB, free: 8.777 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.1917, allocations: 0.721 MB / 427.5 MB, free: 8.055 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002118/0.1938, allocations: 3.267 MB / 430.7 MB, free: 4.777 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.1956, allocations: 2.215 MB / 433 MB, free: 2.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008463/0.1964, allocations: 1.198 MB / 434.2 MB, free: 1.297 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.1976, allocations: 1.533 MB / 435.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000311/0.1979, allocations: 236 kB / 435.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007903/0.1987, allocations: 447.7 kB / 436.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005371/0.1993, allocations: 0.7163 MB / 437.1 MB, free: 14.37 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001158/0.2004, allocations: 1.508 MB / 438.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003446/0.2039, allocations: 4.965 MB / 443.5 MB, free: 7.875 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2039, allocations: 0 / 443.5 MB, free: 7.875 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.2039, allocations: 0 / 443.5 MB, free: 7.875 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.934e-05/0.204, allocations: 0 / 443.5 MB, free: 7.875 MB / 314.7 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.006601/0.2106, allocations: 3.49 MB / 447 MB, free: 4.316 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.2106, allocations: 12.02 kB / 447 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002403/0.213, allocations: 0.5556 MB / 447.6 MB, free: 3.746 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002684/0.2157, allocations: 1.796 MB / 449.4 MB, free: 1.891 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.2159, allocations: 193.5 kB / 449.6 MB, free: 1.699 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003207/0.2162, allocations: 252.1 kB / 449.8 MB, free: 1.453 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004499/0.2207, allocations: 3.281 MB / 453.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.904e-05/0.2208, allocations: 3.906 kB / 453.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.221, allocations: 108 kB / 453.2 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001017/0.2211, allocations: 121 kB / 453.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003925/0.225, allocations: 2.717 MB / 456.1 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.2382, allocations: 10.95 MB / 467 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003175/0.2414, allocations: 3.615 MB / 470.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/0.2427, allocations: 0.8348 MB / 471.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003531/0.2462, allocations: 2.404 MB / 473.9 MB, free: 8.348 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.2463, allocations: 47.2 kB / 473.9 MB, free: 8.293 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 2.315e-06/0.2463, allocations: 0 / 473.9 MB, free: 8.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=117): time 0.009617/0.2559, allocations: 5.273 MB / 479.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006714/0.2626, allocations: 5.015 MB / 484.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.2645, allocations: 1.525 MB / 485.7 MB, free: 12.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.346e-05/0.2646, allocations: 49.7 kB / 485.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000714/0.2653, allocations: 1.243 MB / 487 MB, free: 10.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002645/0.2656, allocations: 406.2 kB / 487.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003852/0.266, allocations: 279.2 kB / 487.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.784e-05/0.266, allocations: 305.1 kB / 488 MB, free: 9.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008417/0.2669, allocations: 0.6091 MB / 488.6 MB, free: 9.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/0.268, allocations: 1.142 MB / 489.7 MB, free: 7.945 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002073/0.2701, allocations: 1.89 MB / 491.6 MB, free: 5.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.2701, allocations: 8 kB / 491.6 MB, free: 5.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002848/0.273, allocations: 2.017 MB / 493.7 MB, free: 3.781 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.273, allocations: 12 kB / 493.7 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.273, allocations: 19.94 kB / 493.7 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002518/0.2733, allocations: 101.6 kB / 493.8 MB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.2747, allocations: 395.6 kB / 494.2 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.758e-05/0.2747, allocations: 35.86 kB / 494.2 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009949/0.2757, allocations: 79.94 kB / 494.3 MB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/0.2758, allocations: 75.92 kB / 494.4 MB, free: 3.07 MB / 362.7 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.001076/0.2769, allocations: 0.8056 MB / 495.2 MB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000213/0.2771, allocations: 169.9 kB / 495.3 MB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003003/0.2801, allocations: 1.836 MB / 497.2 MB, free: 236 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.2802, allocations: 12 kB / 497.2 MB, free: 224 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2802, allocations: 0 / 497.2 MB, free: 224 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.2802, allocations: 11.97 kB / 497.2 MB, free: 212 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007947/0.2881, allocations: 5.635 MB / 0.491 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.2882, allocations: 4 kB / 0.491 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007718/0.2889, allocations: 175.8 kB / 0.4912 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.2901, allocations: 409.6 kB / 0.4916 GB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.659e-05/0.2902, allocations: 24 kB / 0.4916 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006166/0.2963, allocations: 4.752 MB / 0.4963 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1542/0.4505, allocations: 4.905 MB / 0.501 GB, free: 91.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02509/0.4757, allocations: 17.54 MB / 0.5182 GB, free: 83.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005359/0.4762, allocations: 389.2 kB / 0.5185 GB, free: 82.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.4764, allocations: 19.81 kB / 0.5186 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000758/0.4772, allocations: 57.2 kB / 0.5186 GB, free: 82.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.4774, allocations: 104 kB / 0.5187 GB, free: 82.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-05/0.4774, allocations: 32.09 kB / 0.5187 GB, free: 82.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00114/0.4786, allocations: 1.028 MB / 0.5198 GB, free: 82.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4786, allocations: 3.938 kB / 0.5198 GB, free: 82.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001659/0.4803, allocations: 0.699 MB / 0.5204 GB, free: 82.29 MB / 378.7 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.0002124/0.4805, allocations: 147.2 kB / 0.5206 GB, free: 82.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001955/0.4825, allocations: 1.712 MB / 0.5223 GB, free: 80.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4825, allocations: 0 / 0.5223 GB, free: 80.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.4838, allocations: 1.115 MB / 0.5233 GB, free: 79.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.4856, allocations: 457.7 kB / 0.5238 GB, free: 79.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00723/0.4929, allocations: 7.119 MB / 0.5307 GB, free: 72.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/0.494, allocations: 1.996 MB / 0.5327 GB, free: 70.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001203/0.4953, allocations: 390.8 kB / 0.5331 GB, free: 69.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/0.4956, allocations: 131.4 kB / 0.5332 GB, free: 69.74 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4956, allocations: 4 kB / 0.5332 GB, free: 69.74 MB / 378.7 MB Notification: Performance of Templates: time 0.0379/0.5335, allocations: 30.78 MB / 0.5632 GB, free: 39.22 MB / 378.7 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)