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.01717/0.01717, allocations: 2.568 MB / 17.55 MB, free: 4.32 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.0008141/0.000814, allocations: 176 kB / 19.01 MB, free: 3.434 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.471/1.471, allocations: 223.3 MB / 243.6 MB, free: 2.992 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008078/0.0008078, allocations: 88 kB / 295.4 MB, free: 3.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003976, allocations: 12 kB / 357 MB, free: 3.809 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.09994, allocations: 51.02 MB / 408 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01223/0.1122, allocations: 12.43 MB / 420.4 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2425/0.3548, allocations: 4.603 MB / 425 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00364/0.3585, allocations: 83.03 kB / 425.1 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003199/0.3617, allocations: 0.8108 MB / 425.9 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003934/0.3657, allocations: 0.9415 MB / 426.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.3674, allocations: 0.5486 MB / 427.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004187/0.3716, allocations: 3.01 MB / 430.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002329/0.3739, allocations: 1.79 MB / 432.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001906/0.3758, allocations: 1.004 MB / 433.2 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001398/0.3772, allocations: 1.267 MB / 434.5 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002367/0.3775, allocations: 160.7 kB / 434.6 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009769/0.3785, allocations: 346.1 kB / 435 MB, free: 33.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005508/0.379, allocations: 0.591 MB / 435.6 MB, free: 33.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005951/0.3796, allocations: 0.5859 MB / 436.1 MB, free: 33.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002979/0.3826, allocations: 4.154 MB / 440.3 MB, free: 33.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3826, allocations: 3.312 kB / 440.3 MB, free: 33.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3827, allocations: 0 / 440.3 MB, free: 33.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.548e-05/0.3827, allocations: 0 / 440.3 MB, free: 33.12 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.006357/0.3891, allocations: 2.992 MB / 443.3 MB, free: 31.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3891, allocations: 10.47 kB / 443.3 MB, free: 31.81 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005761/0.3897, allocations: 373.6 kB / 443.7 MB, free: 31.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002435/0.3922, allocations: 0.552 MB / 444.2 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.395, allocations: 1.743 MB / 446 MB, free: 31.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.3951, allocations: 194.6 kB / 446.2 MB, free: 31.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003241/0.3954, allocations: 258 kB / 446.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005082/0.4005, allocations: 3.261 MB / 449.7 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.716e-05/0.4006, allocations: 7.062 kB / 449.7 MB, free: 30.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.4008, allocations: 104.6 kB / 449.8 MB, free: 30.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001107/0.4009, allocations: 119.3 kB / 449.9 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004245/0.4052, allocations: 2.698 MB / 452.6 MB, free: 30.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01458/0.4198, allocations: 10.99 MB / 463.6 MB, free: 24.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002971/0.4228, allocations: 3.597 MB / 467.2 MB, free: 20.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001346/0.4242, allocations: 0.8428 MB / 468 MB, free: 20.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004106/0.4283, allocations: 2.406 MB / 470.4 MB, free: 19.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.996e-05/0.4283, allocations: 40.12 kB / 470.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 3.196e-06/0.4283, allocations: 0 / 470.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01112/0.4395, allocations: 5.287 MB / 475.8 MB, free: 16.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007251/0.4468, allocations: 5 MB / 480.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002654/0.4494, allocations: 1.509 MB / 482.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001619/0.4496, allocations: 50.89 kB / 482.3 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007976/0.4504, allocations: 1.246 MB / 483.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002937/0.4507, allocations: 405.4 kB / 484 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.332e-05/0.4508, allocations: 30.44 kB / 484 MB, free: 11.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.517e-05/0.4509, allocations: 364.1 kB / 484.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009281/0.4518, allocations: 0.6065 MB / 484.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.453, allocations: 1.139 MB / 486.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.4541, allocations: 0.8103 MB / 486.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.4542, allocations: 7.297 kB / 486.9 MB, free: 9.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003227/0.4574, allocations: 2.008 MB / 488.9 MB, free: 8.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/0.4574, allocations: 14 kB / 488.9 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/0.4575, allocations: 20.72 kB / 488.9 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000269/0.4577, allocations: 97.2 kB / 489 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.4591, allocations: 392.2 kB / 489.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.523e-05/0.4591, allocations: 38.03 kB / 489.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.4602, allocations: 86.33 kB / 489.5 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.4604, allocations: 68.59 kB / 489.6 MB, free: 8.363 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 (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.001532/0.4619, allocations: 0.8006 MB / 490.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002513/0.4622, allocations: 175 kB / 490.6 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002797/0.465, allocations: 1.831 MB / 492.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.465, allocations: 12.44 kB / 492.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.465, allocations: 0 / 492.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.465, allocations: 3.984 kB / 492.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007501/0.4725, allocations: 5.628 MB / 498.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.4726, allocations: 8 kB / 498.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006669/0.4732, allocations: 175.8 kB / 498.2 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009597/0.4742, allocations: 405.5 kB / 498.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-05/0.4743, allocations: 27.94 kB / 498.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005951/0.4802, allocations: 4.735 MB / 0.4916 GB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006713/0.487, allocations: 4.894 MB / 0.4964 GB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004506/0.4915, allocations: 2.76 MB / 0.4991 GB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009455/0.4924, allocations: 386.9 kB / 0.4994 GB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001921/0.4926, allocations: 28.06 kB / 0.4995 GB, free: 4.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007155/0.4934, allocations: 55.94 kB / 0.4995 GB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.4936, allocations: 88.86 kB / 0.4996 GB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.96e-05/0.4937, allocations: 35.95 kB / 0.4996 GB, free: 4.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001661/0.4953, allocations: 1.031 MB / 0.5006 GB, free: 3.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4953, allocations: 4 kB / 0.5006 GB, free: 3.488 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002073/0.4974, allocations: 0.5039 MB / 0.5011 GB, free: 2.984 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 (87): * Single equations (assignments): 85 * 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.004555/0.502, allocations: 3.34 MB / 0.5044 GB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002605/0.5046, allocations: 1.703 MB / 0.5061 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5046, allocations: 0 / 0.5061 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001789/0.5064, allocations: 1.116 MB / 0.5072 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/0.5087, allocations: 459.1 kB / 0.5076 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0241/0.5328, allocations: 13.53 MB / 0.5208 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001674/0.5345, allocations: 1.961 MB / 0.5227 GB, free: 11.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001393/0.5359, allocations: 382.8 kB / 0.5231 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001173/0.5371, allocations: 0.9562 MB / 0.524 GB, free: 10.57 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5371, allocations: 0 / 0.524 GB, free: 10.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07057/0.6077, allocations: 42.69 MB / 0.5657 GB, free: 248 kB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/0.6079, allocations: 204.5 kB / 0.5659 GB, free: 15.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.802/3.41, allocations: 0 / 0.5659 GB, free: 15.99 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)