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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001979/0.001979, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.322/1.322, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1801/0.1801, allocations: 38.04 MB / 330.4 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 64.52 kB / 399.5 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08982/0.09133, allocations: 58.06 MB / 457.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.008474/0.09984, allocations: 7.079 MB / 464.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004424/0.1043, allocations: 2.863 MB / 467.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005942/0.1049, allocations: 27.88 kB / 467.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.1062, allocations: 387.3 kB / 467.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002/0.1083, allocations: 0.7895 MB / 468.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007434/0.109, allocations: 291.5 kB / 469 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001893/0.1109, allocations: 1.578 MB / 470.5 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00174/0.1127, allocations: 1.417 MB / 472 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.1137, allocations: 0.6424 MB / 472.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.1149, allocations: 0.7476 MB / 473.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003261/0.1153, allocations: 140 kB / 473.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.1165, allocations: 0.7021 MB / 474.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005627/0.1171, allocations: 0.5066 MB / 474.7 MB, free: 6.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009281/0.1181, allocations: 0.6497 MB / 475.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002135/0.1202, allocations: 2.1 MB / 477.4 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1202, allocations: 0 / 477.4 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1202, allocations: 0 / 477.4 MB, free: 4.066 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.286e-05/0.1203, allocations: 0 / 477.4 MB, free: 4.066 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.003493/0.1238, allocations: 1.551 MB / 479 MB, free: 2.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.1238, allocations: 15.97 kB / 479 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007375/0.1246, allocations: 167.5 kB / 479.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.1259, allocations: 0.7995 MB / 480 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.1262, allocations: 204.7 kB / 480.2 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001919/0.1264, allocations: 103.9 kB / 480.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002308/0.1287, allocations: 1.473 MB / 481.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.608e-05/0.1287, allocations: 3.938 kB / 481.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.1288, allocations: 44 kB / 481.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00012/0.129, allocations: 73.97 kB / 481.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002139/0.1311, allocations: 1.261 MB / 483.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007262/0.1384, allocations: 5.231 MB / 488.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.14, allocations: 1.02 MB / 489.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007597/0.1408, allocations: 0.4972 MB / 489.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.816e-05/0.1408, allocations: 8.562 kB / 489.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.1409, allocations: 39.12 kB / 489.9 MB, free: 7.141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=74): time 2.885e-06/0.1409, allocations: 0 / 489.9 MB, free: 7.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=78): time 0.006273/0.1471, allocations: 3.082 MB / 493 MB, free: 3.984 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.1472, allocations: 111.3 kB / 493.1 MB, free: 3.852 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008693/0.1481, allocations: 0.6875 MB / 493.8 MB, free: 3.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.441e-05/0.1482, allocations: 37.7 kB / 493.8 MB, free: 3.113 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003119/0.1485, allocations: 478.7 kB / 494.3 MB, free: 2.637 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002097/0.1487, allocations: 268.2 kB / 494.6 MB, free: 2.371 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002885/0.149, allocations: 190.5 kB / 494.8 MB, free: 2.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1492, allocations: 394.7 kB / 495.1 MB, free: 1.785 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007068/0.1499, allocations: 441.8 kB / 495.6 MB, free: 1.352 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008954/0.1508, allocations: 0.7168 MB / 496.3 MB, free: 0.5156 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.005536/0.1563, allocations: 2.583 MB / 498.9 MB, free: 13.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.1564, allocations: 4 kB / 498.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002249/0.1586, allocations: 1.301 MB / 0.4884 GB, free: 12.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.1587, allocations: 8 kB / 0.4885 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/0.1587, allocations: 15.88 kB / 0.4885 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.159, allocations: 90.12 kB / 0.4886 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008672/0.1598, allocations: 223.7 kB / 0.4888 GB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.161, allocations: 1.453 MB / 0.4902 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008323/0.1619, allocations: 79.77 kB / 0.4903 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.083e-05/0.162, allocations: 44.06 kB / 0.4903 GB, free: 10.42 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 system: 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[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006647/0.1627, allocations: 426.8 kB / 0.4907 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002486/0.1629, allocations: 82.97 kB / 0.4908 GB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001785/0.1647, allocations: 0.9823 MB / 0.4918 GB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.236e-05/0.1647, allocations: 12 kB / 0.4918 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1647, allocations: 3.938 kB / 0.4918 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.1648, allocations: 7.984 kB / 0.4918 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003848/0.1686, allocations: 2.277 MB / 0.494 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.1686, allocations: 4 kB / 0.494 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007242/0.1694, allocations: 143.8 kB / 0.4941 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.1695, allocations: 24.84 kB / 0.4942 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.067e-05/0.1696, allocations: 12 kB / 0.4942 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009331/0.1705, allocations: 1.386 MB / 0.4955 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.1705, allocations: 4 kB / 0.4955 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002328/0.1729, allocations: 1.646 MB / 0.4971 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004083/0.1733, allocations: 244.1 kB / 0.4974 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.1734, allocations: 20 kB / 0.4974 GB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005502/0.174, allocations: 48.02 kB / 0.4974 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.1742, allocations: 68.34 kB / 0.4975 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.271e-05/0.1742, allocations: 16 kB / 0.4975 GB, free: 2.746 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006697/0.1749, allocations: 487 kB / 0.498 GB, free: 2.273 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1749, allocations: 0 / 0.498 GB, free: 2.273 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009839/0.1759, allocations: 259.9 kB / 0.4982 GB, free: 2.02 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 (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003315/0.1762, allocations: 166.2 kB / 0.4984 GB, free: 1.852 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002579/0.1788, allocations: 1.534 MB / 0.4999 GB, free: 288 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.1788, allocations: 0 / 0.4999 GB, free: 288 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009132/0.1797, allocations: 0.6164 MB / 0.5005 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.181, allocations: 221.4 kB / 0.5007 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.1855, allocations: 2.601 MB / 0.5032 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007865/0.1863, allocations: 1.157 MB / 0.5044 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/0.1866, allocations: 79.36 kB / 0.5044 GB, free: 11.53 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1866, allocations: 0 / 0.5044 GB, free: 11.53 MB / 398.1 MB Notification: Performance of Templates: time 0.2013/0.388, allocations: 20.81 MB / 0.5248 GB, free: 68.52 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,efficiency.eta,loadInertia.flange_a.tau,loadInertia.w,power.p Variables in the result:efficiency.eta,loadInertia.flange_a.tau,loadInertia.w,power.p,time