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.0007904/0.0007903, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0008728/0.0008728, allocations: 168.7 kB / 15.95 MB, free: 204 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.42/1.42, allocations: 223.3 MB / 240 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1703/0.1703, allocations: 2.555 MB / 293.6 MB, free: 4.055 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004421/0.0004422, allocations: 15.98 kB / 355.2 MB, free: 4.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1098, allocations: 51.02 MB / 406.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.0135/0.1233, allocations: 12.43 MB / 418.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009103/0.1325, allocations: 4.617 MB / 423.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002096/0.1346, allocations: 83.62 kB / 423.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2136/0.3483, allocations: 0.8063 MB / 424.2 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003628/0.3519, allocations: 0.9369 MB / 425.1 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001595/0.3536, allocations: 0.5453 MB / 425.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003787/0.3573, allocations: 3.015 MB / 428.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002073/0.3594, allocations: 1.779 MB / 430.5 MB, free: 34.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0016/0.361, allocations: 1.008 MB / 431.5 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.3626, allocations: 1.266 MB / 432.7 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002899/0.3629, allocations: 160.5 kB / 432.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.364, allocations: 345.7 kB / 433.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006481/0.3646, allocations: 0.5955 MB / 433.8 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007603/0.3654, allocations: 0.5849 MB / 434.4 MB, free: 33.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003205/0.3686, allocations: 4.157 MB / 438.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3686, allocations: 0 / 438.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3686, allocations: 2.875 kB / 438.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.07e-05/0.3687, allocations: 0 / 438.6 MB, free: 33.59 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.00591/0.3746, allocations: 2.992 MB / 441.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3747, allocations: 9.406 kB / 441.6 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005114/0.3752, allocations: 373.7 kB / 441.9 MB, free: 32.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002357/0.3776, allocations: 0.5529 MB / 442.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002597/0.3802, allocations: 1.749 MB / 444.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001172/0.3803, allocations: 189.4 kB / 444.4 MB, free: 31.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003244/0.3806, allocations: 252.7 kB / 444.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004912/0.3856, allocations: 3.257 MB / 447.9 MB, free: 31.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.2e-05/0.3856, allocations: 17.77 kB / 448 MB, free: 31.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002083/0.3859, allocations: 101.6 kB / 448.1 MB, free: 31.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.386, allocations: 122.9 kB / 448.2 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004028/0.39, allocations: 2.693 MB / 450.9 MB, free: 31.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01567/0.4057, allocations: 10.99 MB / 461.9 MB, free: 24.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003141/0.4089, allocations: 3.595 MB / 465.5 MB, free: 21.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001465/0.4104, allocations: 0.8407 MB / 466.3 MB, free: 21.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00432/0.4147, allocations: 2.41 MB / 468.7 MB, free: 19.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.4148, allocations: 41.77 kB / 468.7 MB, free: 19.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 3.878e-06/0.4148, allocations: 0 / 468.7 MB, free: 19.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01119/0.426, allocations: 5.275 MB / 474 MB, free: 17.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007238/0.4333, allocations: 5.004 MB / 479 MB, free: 14.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003067/0.4364, allocations: 1.52 MB / 480.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001447/0.4365, allocations: 45.86 kB / 480.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008122/0.4373, allocations: 1.25 MB / 481.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004019/0.4378, allocations: 401.5 kB / 482.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.817e-05/0.4379, allocations: 30.56 kB / 482.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.438, allocations: 364.5 kB / 482.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/0.439, allocations: 0.6074 MB / 483.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.4403, allocations: 1.13 MB / 484.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.4416, allocations: 0.8121 MB / 485.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.406e-05/0.4416, allocations: 9.312 kB / 485.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004053/0.4457, allocations: 2.007 MB / 487.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.315e-05/0.4457, allocations: 12.12 kB / 487.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.385e-05/0.4458, allocations: 17.69 kB / 487.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000387/0.4462, allocations: 93.55 kB / 487.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.4477, allocations: 399.8 kB / 487.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.166e-05/0.4478, allocations: 37.98 kB / 487.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.4491, allocations: 86.28 kB / 487.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.4492, allocations: 68.38 kB / 487.9 MB, free: 8.914 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.001587/0.4508, allocations: 0.8138 MB / 488.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000395/0.4512, allocations: 174 kB / 488.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003068/0.4543, allocations: 1.835 MB / 490.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.4543, allocations: 12.31 kB / 490.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4543, allocations: 0 / 490.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.4543, allocations: 6.172 kB / 490.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008935/0.4633, allocations: 5.617 MB / 496.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.4633, allocations: 4 kB / 496.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006756/0.464, allocations: 179.8 kB / 496.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.465, allocations: 401.7 kB / 496.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.497e-05/0.4651, allocations: 20 kB / 496.9 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006123/0.4712, allocations: 4.748 MB / 0.4899 GB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007211/0.4785, allocations: 4.901 MB / 0.4947 GB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004646/0.4831, allocations: 2.756 MB / 0.4974 GB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.4842, allocations: 390.9 kB / 0.4978 GB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004566/0.4847, allocations: 20 kB / 0.4978 GB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009827/0.4857, allocations: 63.92 kB / 0.4978 GB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.4859, allocations: 88.81 kB / 0.4979 GB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.189e-05/0.486, allocations: 43.08 kB / 0.498 GB, free: 5.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001986/0.488, allocations: 1.023 MB / 0.499 GB, free: 4.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.488, allocations: 0 / 0.499 GB, free: 4.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002267/0.4903, allocations: 0.5078 MB / 0.4995 GB, free: 3.57 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.004704/0.495, allocations: 3.335 MB / 0.5027 GB, free: 176 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00277/0.4977, allocations: 1.702 MB / 0.5044 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.4978, allocations: 0 / 0.5044 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.4996, allocations: 1.117 MB / 0.5055 GB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002576/0.5022, allocations: 453.6 kB / 0.5059 GB, free: 12.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02925/0.5314, allocations: 13.53 MB / 0.5191 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002608/0.5341, allocations: 1.957 MB / 0.521 GB, free: 12.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001795/0.5359, allocations: 378.8 kB / 0.5214 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001881/0.5378, allocations: 0.9523 MB / 0.5223 GB, free: 11.16 MB / 398.1 MB Notification: Performance of SimCode: time 2.004e-06/0.5378, allocations: 0 / 0.5223 GB, free: 11.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07766/0.6155, allocations: 42.68 MB / 0.564 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002004/0.6157, allocations: 194.2 kB / 0.5642 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/3.245, allocations: 4 kB / 0.5642 GB, free: 0.5703 MB / 430.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: