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.001191/0.001191, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001206/0.001206, allocations: 193.5 kB / 16.14 MB, free: 6.707 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.215/1.215, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.11/0.11, allocations: 2.581 MB / 292.5 MB, free: 3.434 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 95.86 kB / 353.4 MB, free: 5.305 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07597/0.07755, allocations: 50.03 MB / 403.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01298/0.09057, allocations: 13.96 MB / 417.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006812/0.09741, allocations: 4.922 MB / 422.4 MB, free: 260 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.09853, allocations: 79.69 kB / 422.4 MB, free: 180 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1471/0.2457, allocations: 0.924 MB / 423.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002607/0.2483, allocations: 1.053 MB / 424.4 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001191/0.2495, allocations: 0.7166 MB / 425.1 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002297/0.2518, allocations: 3.22 MB / 428.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001866/0.2537, allocations: 2.21 MB / 430.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.2548, allocations: 1.194 MB / 431.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001095/0.2559, allocations: 1.536 MB / 433.3 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002776/0.2562, allocations: 239.4 kB / 433.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000762/0.257, allocations: 452.2 kB / 434 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003978/0.2574, allocations: 0.7135 MB / 434.7 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009654/0.2584, allocations: 1.508 MB / 436.2 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002671/0.261, allocations: 4.971 MB / 441.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2611, allocations: 0 / 441.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.2611, allocations: 0 / 441.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.978e-05/0.2611, allocations: 0 / 441.2 MB, free: 32.39 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.00559/0.2667, allocations: 3.481 MB / 444.7 MB, free: 30.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.2668, allocations: 13.25 kB / 444.7 MB, free: 30.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003396/0.2671, allocations: 367.3 kB / 445 MB, free: 30.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002322/0.2694, allocations: 0.5568 MB / 445.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002097/0.2716, allocations: 1.79 MB / 447.4 MB, free: 28.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.441e-05/0.2716, allocations: 191.8 kB / 447.6 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000276/0.2719, allocations: 253.5 kB / 447.8 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004047/0.276, allocations: 3.288 MB / 451.1 MB, free: 27.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.983e-05/0.276, allocations: 3.906 kB / 451.1 MB, free: 27.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001982/0.2762, allocations: 106.6 kB / 451.2 MB, free: 27.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.72e-05/0.2763, allocations: 119.9 kB / 451.3 MB, free: 27.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00346/0.2798, allocations: 2.716 MB / 454 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01141/0.2912, allocations: 10.96 MB / 465 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00271/0.294, allocations: 3.604 MB / 468.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/0.2952, allocations: 0.8345 MB / 469.4 MB, free: 16.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003341/0.2985, allocations: 2.401 MB / 471.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.2986, allocations: 43.72 kB / 471.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.685e-06/0.2986, allocations: 0 / 471.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.00957/0.3081, allocations: 5.297 MB / 477.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006211/0.3144, allocations: 5.012 MB / 482.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001904/0.3163, allocations: 1.521 MB / 483.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.149e-05/0.3164, allocations: 46.55 kB / 483.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005341/0.3169, allocations: 1.25 MB / 485 MB, free: 7.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.3172, allocations: 408.2 kB / 485.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003593/0.3175, allocations: 275.6 kB / 485.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 2.755e-05/0.3176, allocations: 310.3 kB / 486 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007903/0.3183, allocations: 0.6118 MB / 486.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.3194, allocations: 1.136 MB / 487.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002153/0.3215, allocations: 1.897 MB / 489.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.3216, allocations: 5.281 kB / 489.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002819/0.3244, allocations: 2.016 MB / 491.6 MB, free: 3.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.3244, allocations: 12.94 kB / 491.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.3244, allocations: 15.28 kB / 491.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002577/0.3247, allocations: 100.5 kB / 491.8 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.326, allocations: 400.8 kB / 492.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.868e-05/0.3261, allocations: 30.95 kB / 492.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.3271, allocations: 88.88 kB / 492.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.3272, allocations: 70.89 kB / 492.3 MB, free: 3.109 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.001229/0.3285, allocations: 0.8038 MB / 493.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002167/0.3287, allocations: 168.3 kB / 493.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002733/0.3314, allocations: 1.841 MB / 495.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.3315, allocations: 15.98 kB / 495.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3315, allocations: 0 / 495.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.3315, allocations: 3.984 kB / 495.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007844/0.3393, allocations: 5.625 MB / 0.4891 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.3394, allocations: 4.344 kB / 0.4891 GB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007003/0.3401, allocations: 183.7 kB / 0.4892 GB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.3412, allocations: 401.4 kB / 0.4896 GB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.605e-05/0.3413, allocations: 27.98 kB / 0.4896 GB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005886/0.3471, allocations: 4.761 MB / 0.4943 GB, free: 5.539 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006277/0.3534, allocations: 4.906 MB / 0.4991 GB, free: 496 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003969/0.3574, allocations: 2.754 MB / 0.5018 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006132/0.358, allocations: 394.9 kB / 0.5022 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001975/0.3583, allocations: 28 kB / 0.5022 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/0.359, allocations: 59.94 kB / 0.5022 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.3592, allocations: 92.69 kB / 0.5023 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.687e-05/0.3592, allocations: 35.98 kB / 0.5024 GB, free: 13.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001328/0.3606, allocations: 1.038 MB / 0.5034 GB, free: 12.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3606, allocations: 0 / 0.5034 GB, free: 12.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001554/0.3621, allocations: 0.5078 MB / 0.5039 GB, free: 11.51 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.004123/0.3663, allocations: 3.367 MB / 0.5072 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00226/0.3685, allocations: 1.715 MB / 0.5088 GB, free: 6.324 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.3686, allocations: 0 / 0.5088 GB, free: 6.324 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.3701, allocations: 1.113 MB / 0.5099 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/0.3719, allocations: 446 kB / 0.5103 GB, free: 4.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02629/0.3982, allocations: 19.69 MB / 0.5296 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00152/0.3997, allocations: 1.965 MB / 0.5315 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001215/0.401, allocations: 378.8 kB / 0.5319 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.4021, allocations: 0.9523 MB / 0.5328 GB, free: 12.23 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4021, allocations: 0 / 0.5328 GB, free: 12.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.262/4.664, allocations: 44.09 MB / 0.5758 GB, free: 472 kB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/4.664, allocations: 208.2 kB / 0.576 GB, free: 208 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/7.037, allocations: 0 / 0.576 GB, free: 208 kB / 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)