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.03943/0.03943, allocations: 2.541 MB / 10.02 MB, free: 380 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009997/0.0009997, allocations: 177.5 kB / 11.17 MB, free: 1.457 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 221.5 MB / 233.7 MB, free: 284 kB / 186.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009097/0.0009097, allocations: 92.72 kB / 285.2 MB, free: 14.5 MB / 234.9 MB Notification: Performance of FrontEnd - loaded program: time 1.573e-05/1.584e-05, allocations: 3.984 kB / 342.5 MB, free: 5.148 MB / 282.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2487, allocations: 51 MB / 393.5 MB, free: 35.52 MB / 298.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1273/0.376, allocations: 111.5 MB / 0.4932 GB, free: 3.848 MB / 378.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.3763, allocations: 72.81 kB / 0.4932 GB, free: 3.777 MB / 378.9 MB Notification: Performance of FrontEnd - DAE generated: time 0.3731/0.7494, allocations: 69.46 MB / 0.5611 GB, free: 49.68 MB / 378.9 MB Notification: Performance of FrontEnd: time 1.493e-06/0.7495, allocations: 0 / 0.5611 GB, free: 49.68 MB / 378.9 MB Notification: Performance of Transformations before backend: time 0.0001716/0.7497, allocations: 63.94 kB / 0.5611 GB, free: 49.62 MB / 378.9 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.005708/0.7554, allocations: 2.61 MB / 0.5637 GB, free: 46.95 MB / 378.9 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.7554, allocations: 16.02 kB / 0.5637 GB, free: 46.93 MB / 378.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00248/0.7579, allocations: 0.5238 MB / 0.5642 GB, free: 46.41 MB / 378.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005846/0.7638, allocations: 2.895 MB / 0.567 GB, free: 43.45 MB / 378.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.421e-05/0.7639, allocations: 80 kB / 0.5671 GB, free: 43.37 MB / 378.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000353/0.7643, allocations: 155.9 kB / 0.5673 GB, free: 43.22 MB / 378.9 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003694/0.768, allocations: 2.299 MB / 0.5695 GB, free: 40.91 MB / 378.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00416/0.7721, allocations: 2.809 MB / 0.5722 GB, free: 37.96 MB / 378.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.31e-05/0.7722, allocations: 7.984 kB / 0.5723 GB, free: 37.96 MB / 378.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001849/0.7724, allocations: 8 kB / 0.5723 GB, free: 37.95 MB / 378.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.32e-05/0.7725, allocations: 113 kB / 0.5724 GB, free: 37.84 MB / 378.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01231/0.7848, allocations: 10.64 MB / 0.5828 GB, free: 26.82 MB / 378.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002559/0.7874, allocations: 3.607 MB / 0.5863 GB, free: 22.7 MB / 378.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000992/0.7885, allocations: 0.7811 MB / 0.587 GB, free: 21.92 MB / 378.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00322/0.7917, allocations: 2.316 MB / 0.5893 GB, free: 19.54 MB / 378.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.7917, allocations: 39.34 kB / 0.5893 GB, free: 19.49 MB / 378.9 MB Notification: Performance of pre-optimization done (n=82): time 2.975e-06/0.7917, allocations: 4 kB / 0.5893 GB, free: 19.48 MB / 378.9 MB Notification: Performance of matching and sorting (n=120): time 0.009639/0.8014, allocations: 4.912 MB / 0.5941 GB, free: 14.5 MB / 378.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.8015, allocations: 64.72 kB / 0.5942 GB, free: 14.43 MB / 378.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.8028, allocations: 1.04 MB / 0.5952 GB, free: 13.38 MB / 378.9 MB Notification: Performance of collectPreVariables (initialization): time 7.595e-05/0.8029, allocations: 33.64 kB / 0.5953 GB, free: 13.34 MB / 378.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005108/0.8034, allocations: 1.257 MB / 0.5965 GB, free: 12.07 MB / 378.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002155/0.8037, allocations: 406.1 kB / 0.5969 GB, free: 11.66 MB / 378.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.57e-05/0.8037, allocations: 0 / 0.5969 GB, free: 11.66 MB / 378.9 MB Notification: Performance of setup shared object (initialization): time 8.479e-05/0.8038, allocations: 361.9 kB / 0.5972 GB, free: 11.3 MB / 378.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006531/0.8045, allocations: 0.5623 MB / 0.5978 GB, free: 10.74 MB / 378.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008128/0.8053, allocations: 1.072 MB / 0.5988 GB, free: 9.438 MB / 378.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.8065, allocations: 0.8494 MB / 0.5996 GB, free: 8.59 MB / 378.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.8065, allocations: 11.94 kB / 0.5997 GB, free: 8.578 MB / 378.9 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.002599/0.8091, allocations: 1.888 MB / 0.6015 GB, free: 6.676 MB / 378.9 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.8091, allocations: 12 kB / 0.6015 GB, free: 6.664 MB / 378.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-05/0.8092, allocations: 20.06 kB / 0.6015 GB, free: 6.645 MB / 378.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000274/0.8095, allocations: 97.67 kB / 0.6016 GB, free: 6.543 MB / 378.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.8108, allocations: 399.3 kB / 0.602 GB, free: 6.152 MB / 378.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.278e-05/0.8109, allocations: 35.86 kB / 0.602 GB, free: 6.117 MB / 378.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.8119, allocations: 55.84 kB / 0.6021 GB, free: 6.062 MB / 378.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.549e-05/0.812, allocations: 71.98 kB / 0.6022 GB, free: 5.992 MB / 378.9 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 (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.0001961/0.8122, allocations: 154.4 kB / 0.6023 GB, free: 5.836 MB / 378.9 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002532/0.8148, allocations: 1.679 MB / 0.6039 GB, free: 4.145 MB / 378.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001871/0.815, allocations: 154.1 kB / 0.6041 GB, free: 3.992 MB / 378.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002944/0.8179, allocations: 1.798 MB / 0.6058 GB, free: 2.172 MB / 378.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.8179, allocations: 12 kB / 0.6059 GB, free: 2.16 MB / 378.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.8179, allocations: 3.953 kB / 0.6059 GB, free: 2.156 MB / 378.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.818, allocations: 7.984 kB / 0.6059 GB, free: 2.148 MB / 378.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008662/0.8266, allocations: 5.337 MB / 0.6111 GB, free: 12.68 MB / 394.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.8267, allocations: 8.062 kB / 0.6111 GB, free: 12.68 MB / 394.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000805/0.8275, allocations: 183.8 kB / 0.6113 GB, free: 12.5 MB / 394.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.8287, allocations: 393.4 kB / 0.6116 GB, free: 12.11 MB / 394.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.623e-05/0.8288, allocations: 11.98 kB / 0.6117 GB, free: 12.09 MB / 394.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006622/0.8354, allocations: 4.669 MB / 0.6162 GB, free: 7.301 MB / 394.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006932/0.8424, allocations: 4.811 MB / 0.6209 GB, free: 2.363 MB / 394.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004607/0.847, allocations: 2.889 MB / 0.6237 GB, free: 15.32 MB / 410.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007872/0.8478, allocations: 359.1 kB / 0.6241 GB, free: 14.95 MB / 410.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001855/0.848, allocations: 7.984 kB / 0.6241 GB, free: 14.95 MB / 410.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007428/0.8488, allocations: 48 kB / 0.6241 GB, free: 14.9 MB / 410.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002024/0.849, allocations: 89.14 kB / 0.6242 GB, free: 14.81 MB / 410.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-05/0.8491, allocations: 35.98 kB / 0.6242 GB, free: 14.77 MB / 410.9 MB Notification: Performance of sorting global known variables: time 0.001231/0.8503, allocations: 0.7724 MB / 0.625 GB, free: 14 MB / 410.9 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8503, allocations: 0 / 0.625 GB, free: 14 MB / 410.9 MB Notification: Performance of remove unused functions: time 0.001819/0.8522, allocations: 488 kB / 0.6255 GB, free: 13.52 MB / 410.9 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 (89): * Single equations (assignments): 87 * 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.005336/0.8575, allocations: 4.433 MB / 0.6298 GB, free: 8.992 MB / 410.9 MB Notification: Performance of simCode: created initialization part: time 0.002555/0.8601, allocations: 1.609 MB / 0.6314 GB, free: 7.344 MB / 410.9 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.8601, allocations: 1.562 kB / 0.6314 GB, free: 7.344 MB / 410.9 MB Notification: Performance of simCode: created simulation system equations: time 0.001739/0.8619, allocations: 1.051 MB / 0.6324 GB, free: 6.262 MB / 410.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/0.8638, allocations: 369.7 kB / 0.6327 GB, free: 5.906 MB / 410.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008134/0.8719, allocations: 4.223 MB / 0.6369 GB, free: 1.582 MB / 410.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001726/0.8737, allocations: 2.012 MB / 0.6388 GB, free: 15.53 MB / 426.9 MB Notification: Performance of simCode: alias equations: time 0.001414/0.8751, allocations: 365.7 kB / 0.6392 GB, free: 15.17 MB / 426.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/0.8764, allocations: 0.9445 MB / 0.6401 GB, free: 14.22 MB / 426.9 MB Notification: Performance of SimCode: time 5.72e-07/0.8764, allocations: 0 / 0.6401 GB, free: 14.22 MB / 426.9 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3134/1.19, allocations: 39.77 MB / 0.6789 GB, free: 91.5 MB / 426.9 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/1.19, allocations: 106.8 kB / 0.679 GB, free: 91.31 MB / 426.9 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.12/4.31, allocations: 0 / 0.679 GB, free: 91.31 MB / 426.9 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)