Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",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.0008529/0.000853, allocations: 96.61 kB / 16.3 MB, free: 6.133 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.0008592/0.0008592, allocations: 179.6 kB / 17.19 MB, free: 6.016 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.222/1.222, allocations: 223.2 MB / 241.1 MB, free: 360 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1596/0.1596, allocations: 38.09 MB / 330.3 MB, free: 8.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002853/0.0002854, allocations: 9.031 kB / 400.1 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09084, allocations: 59.17 MB / 459.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007204/0.0981, allocations: 6.918 MB / 466.1 MB, free: 400 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004118/0.1023, allocations: 2.986 MB / 469.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000441/0.1027, allocations: 43.69 kB / 469.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005454/0.1033, allocations: 222.7 kB / 469.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.1046, allocations: 0.6465 MB / 470 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005651/0.1051, allocations: 271.5 kB / 470.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009559/0.1061, allocations: 0.862 MB / 471.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.1073, allocations: 1.13 MB / 472.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000473/0.1078, allocations: 454.5 kB / 472.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005527/0.1083, allocations: 0.5061 MB / 473.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.162e-05/0.1084, allocations: 56 kB / 473.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007213/0.1092, allocations: 0.5734 MB / 473.9 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003345/0.1095, allocations: 391 kB / 474.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.1097, allocations: 249.1 kB / 474.5 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001268/0.111, allocations: 1.656 MB / 476.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.111, allocations: 0 / 476.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.111, allocations: 0 / 476.2 MB, free: 6.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.111, allocations: 0 / 476.2 MB, free: 6.301 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.002347/0.1134, allocations: 1.36 MB / 477.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.1134, allocations: 8.031 kB / 477.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001797/0.1136, allocations: 168.7 kB / 477.7 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005569/0.1142, allocations: 166.5 kB / 477.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.1154, allocations: 0.7985 MB / 478.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.1156, allocations: 208.8 kB / 478.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.1158, allocations: 103.9 kB / 479 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.1178, allocations: 1.45 MB / 480.4 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/0.1178, allocations: 7.938 kB / 480.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.948e-05/0.1179, allocations: 39.98 kB / 480.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.118, allocations: 77.97 kB / 480.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001848/0.1199, allocations: 1.265 MB / 481.8 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006576/0.1264, allocations: 5.231 MB / 487 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.1279, allocations: 1.037 MB / 488.1 MB, free: 9.957 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.185e-05/0.1279, allocations: 17.3 kB / 488.1 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.128, allocations: 39.12 kB / 488.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 2.624e-06/0.128, allocations: 0 / 488.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.005917/0.1339, allocations: 3.397 MB / 491.5 MB, free: 6.363 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.134, allocations: 127.3 kB / 491.6 MB, free: 6.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007716/0.1348, allocations: 0.6758 MB / 492.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.846e-05/0.1348, allocations: 37.7 kB / 492.3 MB, free: 5.488 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003205/0.1352, allocations: 486.7 kB / 492.8 MB, free: 5.004 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.1354, allocations: 268.2 kB / 493.1 MB, free: 4.738 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.336e-05/0.1354, allocations: 16 kB / 493.1 MB, free: 4.723 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1356, allocations: 386.8 kB / 493.5 MB, free: 4.336 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006456/0.1362, allocations: 449.8 kB / 493.9 MB, free: 3.895 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008129/0.1371, allocations: 0.709 MB / 494.6 MB, free: 3.066 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.003793/0.1409, allocations: 1.58 MB / 496.2 MB, free: 1.469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.1409, allocations: 4 kB / 496.2 MB, free: 1.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001985/0.1429, allocations: 1.408 MB / 497.6 MB, free: 24 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.1429, allocations: 12.47 kB / 497.6 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.1429, allocations: 12 kB / 497.6 MB, free: 0 / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000289/0.1432, allocations: 106.5 kB / 497.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007742/0.144, allocations: 223.6 kB / 498 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/0.1459, allocations: 2.74 MB / 0.489 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006071/0.1465, allocations: 88.02 kB / 0.4891 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.845e-05/0.1466, allocations: 36 kB / 0.4891 GB, free: 12.54 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005415/0.1471, allocations: 413.4 kB / 0.4895 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.1473, allocations: 83 kB / 0.4896 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001641/0.1489, allocations: 1.093 MB / 0.4906 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.774e-05/0.149, allocations: 15.98 kB / 0.4906 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.149, allocations: 4 kB / 0.4906 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.149, allocations: 7.984 kB / 0.4907 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003359/0.1524, allocations: 2.377 MB / 0.493 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1524, allocations: 3.938 kB / 0.493 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006353/0.153, allocations: 147.8 kB / 0.4931 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/0.1532, allocations: 45.66 kB / 0.4932 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.389e-05/0.1532, allocations: 12 kB / 0.4932 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001597/0.1548, allocations: 2.684 MB / 0.4958 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1548, allocations: 4.031 kB / 0.4958 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.157, allocations: 1.785 MB / 0.4975 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003808/0.1574, allocations: 248.1 kB / 0.4978 GB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.1575, allocations: 16 kB / 0.4978 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004652/0.158, allocations: 55.94 kB / 0.4978 GB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.1582, allocations: 64.41 kB / 0.4979 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-05/0.1582, allocations: 20 kB / 0.4979 GB, free: 2.977 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005051/0.1587, allocations: 475 kB / 0.4984 GB, free: 2.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1587, allocations: 0 / 0.4984 GB, free: 2.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009106/0.1596, allocations: 260 kB / 0.4986 GB, free: 2.266 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 65 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1777/0.3374, allocations: 2.599 MB / 0.5012 GB, free: 53.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.3394, allocations: 1.358 MB / 0.5025 GB, free: 53.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3394, allocations: 0 / 0.5025 GB, free: 53.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008052/0.3402, allocations: 0.7321 MB / 0.5032 GB, free: 53.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009077/0.3412, allocations: 213.4 kB / 0.5034 GB, free: 53.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.3513, allocations: 12.78 MB / 0.5159 GB, free: 44.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006606/0.352, allocations: 1.181 MB / 0.5171 GB, free: 43.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007208/0.3527, allocations: 249.4 kB / 0.5173 GB, free: 43.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004103/0.3531, allocations: 343 kB / 0.5176 GB, free: 43.63 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3531, allocations: 0 / 0.5176 GB, free: 43.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.3824, allocations: 19.87 MB / 0.537 GB, free: 32.29 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/0.3826, allocations: 199.8 kB / 0.5372 GB, free: 32.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.067/2.45, allocations: 11.88 kB / 0.5372 GB, free: 32.04 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.mat does not exist to compare? outputFormat=mat