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.01952/0.01952, allocations: 2.576 MB / 17.52 MB, free: 3.828 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.001006/0.001006, allocations: 181.3 kB / 18.99 MB, free: 2.898 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.463/1.463, allocations: 223.2 MB / 243.5 MB, free: 8.543 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.0009391/0.0009391, allocations: 103.2 kB / 295.3 MB, free: 8.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004066/0.0004069, allocations: 15.98 kB / 356.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2296, allocations: 51.01 MB / 407.9 MB, free: 28.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4011/0.6307, allocations: 112.2 MB / 0.5079 GB, free: 97.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.6311, allocations: 74.61 kB / 0.508 GB, free: 97.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1564/0.7875, allocations: 70.47 MB / 0.5768 GB, free: 36.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.638e-06/0.7875, allocations: 0 / 0.5768 GB, free: 36.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003733/0.7879, allocations: 67.94 kB / 0.5769 GB, free: 36.52 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.01072/0.7986, allocations: 2.873 MB / 0.5797 GB, free: 33.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.7987, allocations: 8.031 kB / 0.5797 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001438/0.8002, allocations: 379.1 kB / 0.58 GB, free: 33.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00326/0.8034, allocations: 0.5316 MB / 0.5806 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008597/0.8121, allocations: 2.918 MB / 0.5834 GB, free: 29.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002085/0.8123, allocations: 193.1 kB / 0.5836 GB, free: 29.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/0.8133, allocations: 255.9 kB / 0.5838 GB, free: 29.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00888/0.8222, allocations: 3.221 MB / 0.587 GB, free: 25.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000142/0.8224, allocations: 4 kB / 0.587 GB, free: 25.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006544/0.8231, allocations: 115.9 kB / 0.5871 GB, free: 25.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/0.8232, allocations: 121 kB / 0.5872 GB, free: 25.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00523/0.8285, allocations: 2.526 MB / 0.5897 GB, free: 23.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0163/0.8448, allocations: 11.15 MB / 0.6006 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002878/0.8477, allocations: 3.677 MB / 0.6042 GB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004076/0.8518, allocations: 2.455 MB / 0.6066 GB, free: 4.836 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.8519, allocations: 43.55 kB / 0.6066 GB, free: 4.785 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 2.805e-06/0.8519, allocations: 0 / 0.6066 GB, free: 4.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.01037/0.8623, allocations: 5.388 MB / 0.6119 GB, free: 15.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007585/0.8699, allocations: 5.171 MB / 0.6169 GB, free: 9.988 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002366/0.8723, allocations: 1.302 MB / 0.6182 GB, free: 8.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001981/0.8725, allocations: 41.7 kB / 0.6182 GB, free: 8.633 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009606/0.8735, allocations: 1.235 MB / 0.6194 GB, free: 7.383 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004172/0.8739, allocations: 421.9 kB / 0.6198 GB, free: 6.965 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.642e-05/0.874, allocations: 32 kB / 0.6199 GB, free: 6.934 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.8742, allocations: 365.9 kB / 0.6202 GB, free: 6.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009467/0.8751, allocations: 0.6091 MB / 0.6208 GB, free: 5.961 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.8765, allocations: 1.124 MB / 0.6219 GB, free: 4.609 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.8778, allocations: 0.815 MB / 0.6227 GB, free: 3.797 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.776e-06/0.8778, allocations: 8 kB / 0.6227 GB, free: 3.789 MB / 394.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.003216/0.881, allocations: 2.013 MB / 0.6247 GB, free: 1.758 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.8811, allocations: 12 kB / 0.6247 GB, free: 1.746 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.995e-05/0.8811, allocations: 16 kB / 0.6247 GB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002658/0.8814, allocations: 101.7 kB / 0.6248 GB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.8828, allocations: 395.4 kB / 0.6252 GB, free: 1.238 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.115e-05/0.8829, allocations: 39.89 kB / 0.6252 GB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.8841, allocations: 91.83 kB / 0.6253 GB, free: 1.109 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.8842, allocations: 71.98 kB / 0.6254 GB, free: 1.039 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (195): * Single equations (assignments): 193 * 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.00164/0.8859, allocations: 0.8095 MB / 0.6262 GB, free: 224 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002914/0.8862, allocations: 165.9 kB / 0.6263 GB, free: 56 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003394/0.8896, allocations: 1.871 MB / 0.6281 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.8896, allocations: 12 kB / 0.6282 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.8896, allocations: 0 / 0.6282 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.8896, allocations: 7.984 kB / 0.6282 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009922/0.8996, allocations: 5.689 MB / 0.6337 GB, free: 8.336 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.8996, allocations: 3.953 kB / 0.6337 GB, free: 8.332 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008604/0.9005, allocations: 195.7 kB / 0.6339 GB, free: 8.141 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.9018, allocations: 389.5 kB / 0.6343 GB, free: 7.754 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-05/0.9019, allocations: 35.92 kB / 0.6343 GB, free: 7.719 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006925/0.9088, allocations: 4.902 MB / 0.6391 GB, free: 2.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007252/0.9161, allocations: 5.047 MB / 0.644 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004582/0.9207, allocations: 2.968 MB / 0.6469 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.9218, allocations: 390.9 kB / 0.6473 GB, free: 9.977 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/0.922, allocations: 20 kB / 0.6473 GB, free: 9.957 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008143/0.9229, allocations: 71.98 kB / 0.6474 GB, free: 9.887 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.9231, allocations: 100.7 kB / 0.6475 GB, free: 9.789 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-05/0.9232, allocations: 35.98 kB / 0.6475 GB, free: 9.754 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00151/0.9247, allocations: 0.9917 MB / 0.6485 GB, free: 8.766 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9247, allocations: 0 / 0.6485 GB, free: 8.766 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002001/0.9267, allocations: 0.5586 MB / 0.649 GB, free: 8.207 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 90 * 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.005482/0.9322, allocations: 4.548 MB / 0.6535 GB, free: 3.551 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.9349, allocations: 1.725 MB / 0.6552 GB, free: 1.789 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.935, allocations: 0 / 0.6552 GB, free: 1.789 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001794/0.9368, allocations: 1.141 MB / 0.6563 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002117/0.9389, allocations: 440.7 kB / 0.6567 GB, free: 196 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2566/1.196, allocations: 24.28 MB / 0.6804 GB, free: 100.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/1.197, allocations: 2.006 MB / 0.6824 GB, free: 99.61 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00167/1.199, allocations: 387.5 kB / 0.6827 GB, free: 99.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/1.2, allocations: 0.946 MB / 0.6837 GB, free: 99.59 MB / 442.7 MB Notification: Performance of SimCode: time 1.262e-06/1.2, allocations: 0 / 0.6837 GB, free: 99.59 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0771/1.277, allocations: 47.19 MB / 0.7297 GB, free: 90.42 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/1.278, allocations: 185.4 kB / 0.7299 GB, free: 90.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.257/4.534, allocations: 0 / 0.7299 GB, free: 90.18 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)