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: "" <> buildModelFMU(BLDC.Examples.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.SMPM_NominalOperation,fileNamePrefix="BLDC_BLDC_Examples_SMPM_NominalOperation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.02651/0.02651, allocations: 2.536 MB / 15.09 MB, free: 204 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 177.5 kB / 16.35 MB, free: 4.02 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.423/1.423, allocations: 221.4 MB / 238.9 MB, free: 11.41 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.0008821/0.0008822, allocations: 98.45 kB / 290.4 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.999e-05/4.012e-05, allocations: 4 kB / 349.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3001, allocations: 51.01 MB / 400.4 MB, free: 31.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4393/0.7395, allocations: 112.2 MB / 0.5006 GB, free: 98.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.7398, allocations: 76.53 kB / 0.5006 GB, free: 98.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1589/0.8987, allocations: 70.45 MB / 0.5694 GB, free: 39.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.8988, allocations: 0 / 0.5694 GB, free: 39.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002013/0.899, allocations: 67.88 kB / 0.5695 GB, free: 39.73 MB / 378.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.007539/0.9065, allocations: 2.61 MB / 0.572 GB, free: 37.06 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.9066, allocations: 8.031 kB / 0.572 GB, free: 37.05 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001295/0.9079, allocations: 367.1 kB / 0.5724 GB, free: 36.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003433/0.9114, allocations: 0.5316 MB / 0.5729 GB, free: 36.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007847/0.9192, allocations: 2.895 MB / 0.5757 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/0.9194, allocations: 193.1 kB / 0.5759 GB, free: 33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008389/0.9203, allocations: 255.9 kB / 0.5762 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005681/0.926, allocations: 3.186 MB / 0.5793 GB, free: 29.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.945e-05/0.9261, allocations: 3.938 kB / 0.5793 GB, free: 29.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002345/0.9263, allocations: 112 kB / 0.5794 GB, free: 29.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000116/0.9264, allocations: 117 kB / 0.5795 GB, free: 29.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00446/0.9309, allocations: 2.476 MB / 0.5819 GB, free: 26.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01878/0.9497, allocations: 11.14 MB / 0.5928 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003288/0.9531, allocations: 3.653 MB / 0.5964 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/0.9544, allocations: 0.7998 MB / 0.5971 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00458/0.959, allocations: 2.377 MB / 0.5995 GB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.417e-05/0.9591, allocations: 43.34 kB / 0.5995 GB, free: 7.703 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 3.346e-06/0.9591, allocations: 0 / 0.5995 GB, free: 7.703 MB / 378.7 MB Notification: Performance of matching and sorting (n=116): time 0.01053/0.9696, allocations: 4.753 MB / 0.6041 GB, free: 2.887 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007175/0.9769, allocations: 5.01 MB / 0.609 GB, free: 13.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002488/0.9794, allocations: 1.294 MB / 0.6103 GB, free: 12.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002204/0.9797, allocations: 45.7 kB / 0.6103 GB, free: 12.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.9807, allocations: 1.247 MB / 0.6116 GB, free: 11.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005279/0.9813, allocations: 402.2 kB / 0.612 GB, free: 10.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.9814, allocations: 28 kB / 0.612 GB, free: 10.67 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.9816, allocations: 369.9 kB / 0.6123 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.9827, allocations: 0.578 MB / 0.6129 GB, free: 9.727 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.9843, allocations: 1.091 MB / 0.614 GB, free: 8.402 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.9858, allocations: 0.7934 MB / 0.6147 GB, free: 7.605 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/0.9858, allocations: 11.94 kB / 0.6147 GB, free: 7.594 MB / 394.7 MB Notification: Performance of matching and sorting (n=193) (initialization): time 0.003897/0.9897, allocations: 1.943 MB / 0.6166 GB, free: 5.637 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.46e-05/0.9898, allocations: 13.88 kB / 0.6167 GB, free: 5.625 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.231e-05/0.9899, allocations: 16 kB / 0.6167 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003147/0.9902, allocations: 105.6 kB / 0.6168 GB, free: 5.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001535/0.9917, allocations: 395.5 kB / 0.6171 GB, free: 5.113 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.481e-05/0.9918, allocations: 39.81 kB / 0.6172 GB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.9934, allocations: 83.92 kB / 0.6173 GB, free: 4.992 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001798/0.9936, allocations: 68 kB / 0.6173 GB, free: 4.926 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 189 * 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.0003512/0.994, allocations: 200.4 kB / 0.6175 GB, free: 4.723 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005361/0.9945, allocations: 165.9 kB / 0.6177 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004007/0.9985, allocations: 1.797 MB / 0.6194 GB, free: 2.742 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.9986, allocations: 12 kB / 0.6194 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.9986, allocations: 0 / 0.6194 GB, free: 2.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.9986, allocations: 3.984 kB / 0.6195 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01338/1.012, allocations: 5.56 MB / 0.6249 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/1.012, allocations: 0 / 0.6249 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008383/1.013, allocations: 179.8 kB / 0.6251 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001359/1.014, allocations: 401.7 kB / 0.6254 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/1.014, allocations: 27.98 kB / 0.6255 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00753/1.022, allocations: 4.721 MB / 0.6301 GB, free: 7.582 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007281/1.029, allocations: 4.878 MB / 0.6348 GB, free: 2.559 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004874/1.034, allocations: 2.859 MB / 0.6376 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/1.036, allocations: 379 kB / 0.638 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002519/1.036, allocations: 20 kB / 0.638 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008274/1.037, allocations: 63.92 kB / 0.6381 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002858/1.037, allocations: 92.83 kB / 0.6382 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.558e-05/1.037, allocations: 36.06 kB / 0.6382 GB, free: 14.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001996/1.039, allocations: 0.9794 MB / 0.6392 GB, free: 13.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.665e-06/1.039, allocations: 0 / 0.6392 GB, free: 13.99 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002731/1.042, allocations: 0.5546 MB / 0.6397 GB, free: 13.43 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 84 * 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.005956/1.048, allocations: 4.472 MB / 0.6441 GB, free: 8.859 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002986/1.051, allocations: 1.656 MB / 0.6457 GB, free: 7.164 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.051, allocations: 3.938 kB / 0.6457 GB, free: 7.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002031/1.053, allocations: 1.084 MB / 0.6467 GB, free: 6.039 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002716/1.056, allocations: 433.8 kB / 0.6472 GB, free: 5.617 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/1.067, allocations: 4.355 MB / 0.6514 GB, free: 1.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001916/1.069, allocations: 1.999 MB / 0.6534 GB, free: 15.13 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001839/1.071, allocations: 386.9 kB / 0.6537 GB, free: 14.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001741/1.073, allocations: 0.9406 MB / 0.6546 GB, free: 13.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.392e-06/1.073, allocations: 0 / 0.6546 GB, free: 13.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4053/1.478, allocations: 47.63 MB / 0.7012 GB, free: 102.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/1.478, allocations: 154.9 kB / 0.7013 GB, free: 102.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.766/5.244, allocations: 0 / 0.7013 GB, free: 102.7 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_SMPM_NominalOperation_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_SMPM_NominalOperation.fmu > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1)