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.0008967/0.0008967, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007853/0.007853, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1931/0.1931, allocations: 2.559 MB / 294 MB, free: 4.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004885/0.0004885, allocations: 16 kB / 355.9 MB, free: 4.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1254, allocations: 51.01 MB / 406.9 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01525/0.1407, allocations: 13.28 MB / 420.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2523/0.393, allocations: 4.858 MB / 425 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003101/0.3962, allocations: 84.62 kB / 425.1 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00383/0.4001, allocations: 0.926 MB / 426 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004591/0.4047, allocations: 1.034 MB / 427.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.4065, allocations: 0.7151 MB / 427.8 MB, free: 34.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004766/0.4113, allocations: 3.223 MB / 431 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002645/0.414, allocations: 2.194 MB / 433.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001901/0.4159, allocations: 1.033 MB / 434.2 MB, free: 33.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.4176, allocations: 1.323 MB / 435.5 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000282/0.4178, allocations: 161.4 kB / 435.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001011/0.4189, allocations: 368.1 kB / 436.1 MB, free: 33.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004942/0.4194, allocations: 0.6032 MB / 436.7 MB, free: 33.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.4209, allocations: 1.398 MB / 438.1 MB, free: 32.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003774/0.4246, allocations: 4.8 MB / 442.9 MB, free: 32.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4247, allocations: 5.719 kB / 442.9 MB, free: 32.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4247, allocations: 0 / 442.9 MB, free: 32.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001254/0.4248, allocations: 0 / 442.9 MB, free: 32.08 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.007182/0.432, allocations: 2.967 MB / 445.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.4321, allocations: 9.922 kB / 445.8 MB, free: 30.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006849/0.4328, allocations: 372.6 kB / 446.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002595/0.4354, allocations: 0.5537 MB / 446.8 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003085/0.4385, allocations: 1.789 MB / 448.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.4386, allocations: 190.3 kB / 448.7 MB, free: 28.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003668/0.439, allocations: 256.8 kB / 449 MB, free: 28.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005219/0.4442, allocations: 3.281 MB / 452.3 MB, free: 27.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.896e-05/0.4443, allocations: 7.438 kB / 452.3 MB, free: 27.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002315/0.4446, allocations: 101.7 kB / 452.4 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/0.4447, allocations: 121.4 kB / 452.5 MB, free: 27.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004505/0.4492, allocations: 2.715 MB / 455.2 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01809/0.4673, allocations: 11 MB / 466.2 MB, free: 19.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004246/0.4716, allocations: 3.607 MB / 469.8 MB, free: 16.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/0.4734, allocations: 0.8359 MB / 470.6 MB, free: 16.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005374/0.4788, allocations: 2.406 MB / 473.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.4789, allocations: 43.34 kB / 473.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.305e-06/0.4789, allocations: 0 / 473.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01243/0.4913, allocations: 5.306 MB / 478.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00781/0.4992, allocations: 5.004 MB / 483.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003358/0.5026, allocations: 1.526 MB / 484.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002437/0.5029, allocations: 46.08 kB / 485 MB, free: 8.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.5039, allocations: 1.243 MB / 486.2 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003607/0.5043, allocations: 407.8 kB / 486.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.5045, allocations: 123.8 kB / 486.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.155e-05/0.5045, allocations: 305.1 kB / 487 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000848/0.5054, allocations: 0.6129 MB / 487.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.5064, allocations: 1.14 MB / 488.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002374/0.5088, allocations: 1.895 MB / 490.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.457e-05/0.5088, allocations: 5.312 kB / 490.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003584/0.5124, allocations: 2.017 MB / 492.7 MB, free: 2.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/0.5124, allocations: 18.31 kB / 492.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.779e-05/0.5125, allocations: 14.88 kB / 492.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003031/0.5128, allocations: 92.2 kB / 492.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.5142, allocations: 401.7 kB / 493.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.684e-05/0.5143, allocations: 40.3 kB / 493.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.5157, allocations: 82.31 kB / 493.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.5158, allocations: 72.77 kB / 493.4 MB, free: 2.617 MB / 350.1 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.001805/0.5176, allocations: 0.809 MB / 494.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002968/0.5179, allocations: 164.3 kB / 494.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/0.5209, allocations: 1.837 MB / 496.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.5209, allocations: 12 kB / 496.2 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5209, allocations: 4 kB / 496.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.5209, allocations: 11.97 kB / 496.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009308/0.5302, allocations: 5.623 MB / 0.4901 GB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.749e-06/0.5303, allocations: 5.5 kB / 0.4901 GB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007507/0.531, allocations: 175.8 kB / 0.4903 GB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001194/0.5322, allocations: 409.6 kB / 0.4907 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-05/0.5323, allocations: 28 kB / 0.4907 GB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007092/0.5394, allocations: 4.757 MB / 0.4953 GB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007206/0.5467, allocations: 4.915 MB / 0.5001 GB, free: 404 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004798/0.5515, allocations: 2.768 MB / 0.5028 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009665/0.5525, allocations: 386.9 kB / 0.5032 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.5527, allocations: 27.98 kB / 0.5032 GB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007951/0.5535, allocations: 59.94 kB / 0.5033 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002849/0.5538, allocations: 96.81 kB / 0.5034 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.954e-05/0.5538, allocations: 32 kB / 0.5034 GB, free: 12.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001755/0.5556, allocations: 1.042 MB / 0.5044 GB, free: 11.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5556, allocations: 4 kB / 0.5044 GB, free: 11.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002172/0.5578, allocations: 0.5 MB / 0.5049 GB, free: 11.42 MB / 382.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 (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.004938/0.5627, allocations: 3.353 MB / 0.5082 GB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00291/0.5657, allocations: 1.714 MB / 0.5099 GB, free: 6.242 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5657, allocations: 0 / 0.5099 GB, free: 6.242 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001761/0.5674, allocations: 1.114 MB / 0.511 GB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003257/0.5707, allocations: 452 kB / 0.5114 GB, free: 4.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03636/0.6071, allocations: 19.74 MB / 0.5307 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001865/0.609, allocations: 1.957 MB / 0.5326 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001566/0.6106, allocations: 378.8 kB / 0.5329 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/0.6119, allocations: 0.9523 MB / 0.5339 GB, free: 12.09 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6119, allocations: 0 / 0.5339 GB, free: 12.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1068/0.7187, allocations: 43.49 MB / 0.5763 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003137/0.7191, allocations: 200.6 kB / 0.5765 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.066/3.785, allocations: 3.938 kB / 0.5765 GB, free: 0.6758 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/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)