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.00106/0.00106, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001138/0.001138, allocations: 194.6 kB / 16.26 MB, free: 6.633 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.259/1.259, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1111/0.1111, allocations: 2.574 MB / 292.6 MB, free: 3.434 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 87.86 kB / 353.6 MB, free: 5.152 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07912/0.08069, allocations: 50.03 MB / 403.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01352/0.09425, allocations: 13.96 MB / 417.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007121/0.1014, allocations: 4.895 MB / 422.5 MB, free: 144 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.1025, allocations: 83.69 kB / 422.6 MB, free: 60 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.142/0.2446, allocations: 0.9348 MB / 423.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003308/0.248, allocations: 1.037 MB / 424.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001496/0.2495, allocations: 0.7097 MB / 425.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003096/0.2526, allocations: 3.157 MB / 428.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002223/0.2548, allocations: 2.646 MB / 431.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001427/0.2563, allocations: 1.375 MB / 432.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001276/0.2575, allocations: 1.634 MB / 434.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003548/0.2579, allocations: 386.4 kB / 434.5 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008981/0.2588, allocations: 0.5873 MB / 435.1 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004679/0.2593, allocations: 0.8717 MB / 435.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.2605, allocations: 1.66 MB / 437.6 MB, free: 33.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003392/0.2639, allocations: 5.072 MB / 442.7 MB, free: 31.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.264, allocations: 0 / 442.7 MB, free: 31.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.264, allocations: 3.125 kB / 442.7 MB, free: 31.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.919e-05/0.2641, allocations: 0 / 442.7 MB, free: 31.47 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.006498/0.2706, allocations: 3.493 MB / 446.2 MB, free: 29.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.2706, allocations: 9.5 kB / 446.2 MB, free: 29.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003755/0.271, allocations: 374.7 kB / 446.5 MB, free: 29.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002481/0.2735, allocations: 0.5507 MB / 447.1 MB, free: 29.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002477/0.276, allocations: 1.794 MB / 448.9 MB, free: 28.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.981e-05/0.2761, allocations: 189 kB / 449.1 MB, free: 27.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003335/0.2764, allocations: 254.8 kB / 449.3 MB, free: 27.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004464/0.2809, allocations: 3.285 MB / 452.6 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.114e-05/0.281, allocations: 10.88 kB / 452.6 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/0.2812, allocations: 103.6 kB / 452.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.848e-05/0.2813, allocations: 117.1 kB / 452.8 MB, free: 26.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003663/0.285, allocations: 2.717 MB / 455.5 MB, free: 25.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01319/0.2982, allocations: 10.95 MB / 466.5 MB, free: 18.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002766/0.301, allocations: 3.602 MB / 470.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.3022, allocations: 0.8321 MB / 470.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003596/0.3058, allocations: 2.4 MB / 473.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.3059, allocations: 47.19 kB / 473.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 3.016e-06/0.3059, allocations: 3.984 kB / 473.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.0102/0.3161, allocations: 5.308 MB / 478.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006546/0.3227, allocations: 5.171 MB / 483.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/0.3248, allocations: 1.533 MB / 485.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001364/0.325, allocations: 46.17 kB / 485.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005869/0.3256, allocations: 1.25 MB / 486.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.3258, allocations: 403 kB / 487.1 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003768/0.3262, allocations: 275.1 kB / 487.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.303e-05/0.3263, allocations: 305.1 kB / 487.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008223/0.3271, allocations: 0.612 MB / 488.3 MB, free: 5.469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.3281, allocations: 1.144 MB / 489.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001829/0.3299, allocations: 1.888 MB / 491.3 MB, free: 3.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.33, allocations: 6.906 kB / 491.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002704/0.3327, allocations: 2.013 MB / 493.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.3327, allocations: 16.47 kB / 493.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.3327, allocations: 27.2 kB / 493.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002412/0.333, allocations: 101.1 kB / 493.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.3343, allocations: 398.5 kB / 493.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.231e-05/0.3343, allocations: 35.86 kB / 493.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.3354, allocations: 83.84 kB / 494 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.36e-05/0.3355, allocations: 71.98 kB / 494 MB, free: 1.961 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.001043/0.3366, allocations: 0.8062 MB / 494.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002139/0.3368, allocations: 173.9 kB / 495 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002997/0.3398, allocations: 1.821 MB / 496.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3398, allocations: 16 kB / 496.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3399, allocations: 0 / 496.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.3399, allocations: 11.97 kB / 496.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008722/0.3486, allocations: 5.634 MB / 0.4907 GB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.3486, allocations: 0 / 0.4907 GB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007897/0.3494, allocations: 179.8 kB / 0.4909 GB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.3506, allocations: 409.6 kB / 0.4913 GB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.49e-05/0.3507, allocations: 27.98 kB / 0.4913 GB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007038/0.3578, allocations: 5.163 MB / 0.4963 GB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006981/0.3648, allocations: 5.078 MB / 0.5013 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004359/0.3691, allocations: 2.766 MB / 0.504 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007616/0.3699, allocations: 382.9 kB / 0.5044 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002111/0.3701, allocations: 20 kB / 0.5044 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007898/0.3709, allocations: 59.94 kB / 0.5044 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.3712, allocations: 96.88 kB / 0.5045 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-05/0.3712, allocations: 39.92 kB / 0.5046 GB, free: 10.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001423/0.3727, allocations: 1.035 MB / 0.5056 GB, free: 9.777 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3727, allocations: 0 / 0.5056 GB, free: 9.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001646/0.3743, allocations: 0.5039 MB / 0.5061 GB, free: 9.273 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.004418/0.3787, allocations: 3.354 MB / 0.5093 GB, free: 5.852 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003477/0.3822, allocations: 1.998 MB / 0.5113 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/0.3823, allocations: 5.875 kB / 0.5113 GB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001674/0.3839, allocations: 1.116 MB / 0.5124 GB, free: 2.656 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/0.3861, allocations: 471.3 kB / 0.5128 GB, free: 2.199 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02848/0.4146, allocations: 19.69 MB / 0.5321 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.4162, allocations: 1.957 MB / 0.534 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00127/0.4174, allocations: 378.8 kB / 0.5343 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/0.4186, allocations: 0.9562 MB / 0.5353 GB, free: 9.695 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4186, allocations: 0 / 0.5353 GB, free: 9.695 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1978/0.6164, allocations: 45.18 MB / 0.5794 GB, free: 130.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001359/0.6166, allocations: 198.8 kB / 0.5796 GB, free: 130.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/3.141, allocations: 0 / 0.5796 GB, free: 130.5 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)