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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001047/0.001048, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1631/0.1631, allocations: 2.565 MB / 293.5 MB, free: 4.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004148/0.0004148, allocations: 16 kB / 355.1 MB, free: 4.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1017, allocations: 51.01 MB / 406.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01214/0.1139, allocations: 11.4 MB / 417.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008172/0.1221, allocations: 4.696 MB / 422.3 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001625/0.1238, allocations: 75.69 kB / 422.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002703/0.1265, allocations: 0.933 MB / 423.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2548/0.3813, allocations: 1.21 MB / 424.5 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003025/0.3844, allocations: 0.6183 MB / 425.1 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006106/0.3905, allocations: 2.17 MB / 427.3 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003523/0.3941, allocations: 1.778 MB / 429 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003029/0.3971, allocations: 0.9836 MB / 430 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002523/0.3997, allocations: 1.147 MB / 431.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003562/0.4, allocations: 156.6 kB / 431.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.4012, allocations: 328 kB / 431.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005853/0.4018, allocations: 0.5625 MB / 432.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.4031, allocations: 0.5902 MB / 432.8 MB, free: 34.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005092/0.4082, allocations: 4.107 MB / 436.9 MB, free: 34.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4083, allocations: 0 / 436.9 MB, free: 34.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4083, allocations: 0 / 436.9 MB, free: 34.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.951e-05/0.4084, allocations: 0 / 436.9 MB, free: 34.28 MB / 350.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.007938/0.4163, allocations: 2.979 MB / 439.9 MB, free: 32.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.058e-05/0.4164, allocations: 9.625 kB / 439.9 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008022/0.4172, allocations: 368.3 kB / 440.2 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002789/0.42, allocations: 0.5575 MB / 440.8 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00365/0.4237, allocations: 1.764 MB / 442.6 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001384/0.4238, allocations: 191.5 kB / 442.8 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003906/0.4242, allocations: 255.2 kB / 443 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005767/0.43, allocations: 3.237 MB / 446.2 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.478e-05/0.4301, allocations: 8.859 kB / 446.3 MB, free: 32.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002412/0.4304, allocations: 109 kB / 446.4 MB, free: 32.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/0.4305, allocations: 118.1 kB / 446.5 MB, free: 32.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005137/0.4356, allocations: 2.693 MB / 449.2 MB, free: 32.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01826/0.4539, allocations: 10.93 MB / 460.1 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003388/0.4574, allocations: 3.59 MB / 463.7 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004372/0.4618, allocations: 2.436 MB / 466.1 MB, free: 21.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.4618, allocations: 42.5 kB / 466.2 MB, free: 21.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 2.334e-06/0.4618, allocations: 0 / 466.2 MB, free: 21.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01281/0.4747, allocations: 5.363 MB / 471.5 MB, free: 19.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008746/0.4835, allocations: 5.1 MB / 476.6 MB, free: 16.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/0.4861, allocations: 1.435 MB / 478.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001778/0.4863, allocations: 51.7 kB / 478.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008499/0.4872, allocations: 1.235 MB / 479.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003536/0.4875, allocations: 419.1 kB / 479.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.251e-05/0.4876, allocations: 31.31 kB / 479.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.4877, allocations: 371.7 kB / 480.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.4888, allocations: 0.6185 MB / 480.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.49, allocations: 1.14 MB / 481.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001234/0.4913, allocations: 0.8252 MB / 482.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/0.4913, allocations: 5.312 kB / 482.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003369/0.4947, allocations: 2.027 MB / 484.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.551e-05/0.4947, allocations: 12.12 kB / 484.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/0.4948, allocations: 19.91 kB / 484.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002767/0.495, allocations: 109.5 kB / 484.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.4966, allocations: 396.4 kB / 485.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.945e-05/0.4966, allocations: 37.05 kB / 485.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.4978, allocations: 88.95 kB / 485.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.498, allocations: 72 kB / 485.5 MB, free: 11.27 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 195 * 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.001667/0.4996, allocations: 0.8078 MB / 486.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/0.5, allocations: 163.7 kB / 486.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003414/0.5034, allocations: 1.871 MB / 488.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.18e-05/0.5035, allocations: 12.16 kB / 488.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.5035, allocations: 3.953 kB / 488.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.5035, allocations: 3.984 kB / 488.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008814/0.5123, allocations: 5.671 MB / 494 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.5124, allocations: 352 / 494 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007885/0.5131, allocations: 194.1 kB / 494.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.5142, allocations: 399.6 kB / 494.6 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.852e-05/0.5143, allocations: 24.22 kB / 494.6 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006224/0.5205, allocations: 4.852 MB / 499.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007432/0.528, allocations: 4.987 MB / 0.4926 GB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004987/0.533, allocations: 2.971 MB / 0.4955 GB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.5341, allocations: 378.9 kB / 0.4959 GB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002031/0.5343, allocations: 27.95 kB / 0.4959 GB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007551/0.5351, allocations: 58.38 kB / 0.496 GB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/0.5354, allocations: 100.9 kB / 0.4961 GB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.367e-05/0.5354, allocations: 34.41 kB / 0.4961 GB, free: 8.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001699/0.5371, allocations: 0.9676 MB / 0.497 GB, free: 7.316 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5372, allocations: 0 / 0.497 GB, free: 7.316 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002492/0.5397, allocations: 0.5 MB / 0.4975 GB, free: 6.816 MB / 366.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 (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.005866/0.5455, allocations: 4.292 MB / 0.5017 GB, free: 2.414 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004176/0.5497, allocations: 1.737 MB / 0.5034 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.5498, allocations: 0 / 0.5034 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002087/0.5519, allocations: 1.135 MB / 0.5045 GB, free: 15.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002978/0.5549, allocations: 431.7 kB / 0.5049 GB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04785/0.6027, allocations: 24.41 MB / 0.5288 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004728/0.6076, allocations: 2.016 MB / 0.5307 GB, free: 3.668 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002844/0.6105, allocations: 378.7 kB / 0.5311 GB, free: 3.293 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002653/0.6132, allocations: 0.9562 MB / 0.532 GB, free: 2.336 MB / 398.1 MB Notification: Performance of SimCode: time 2.214e-06/0.6132, allocations: 0 / 0.532 GB, free: 2.336 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09434/0.7075, allocations: 41.97 MB / 0.573 GB, free: 8.715 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002333/0.7078, allocations: 188.4 kB / 0.5732 GB, free: 8.473 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.026/3.734, allocations: 3.938 kB / 0.5732 GB, free: 8.469 MB / 446.1 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) Environment - environmentSimulation: