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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 8.223 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.179/0.179, allocations: 38.52 MB / 353.2 MB, free: 12.59 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2597,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=2597,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 71.89 kB / 493.8 MB, free: 4.398 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3303/0.3324, allocations: 62.47 MB / 0.5432 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01071/0.3431, allocations: 7.289 MB / 0.5504 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005964/0.3491, allocations: 2.936 MB / 0.5532 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008844/0.35, allocations: 42.03 kB / 0.5533 GB, free: 8.539 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.3516, allocations: 391.8 kB / 0.5536 GB, free: 8.234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002731/0.3543, allocations: 0.8086 MB / 0.5544 GB, free: 7.633 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.3553, allocations: 314.2 kB / 0.5547 GB, free: 7.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002841/0.3582, allocations: 1.587 MB / 0.5563 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002292/0.3605, allocations: 1.172 MB / 0.5574 GB, free: 5.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001703/0.3622, allocations: 0.6796 MB / 0.5581 GB, free: 5.199 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001785/0.364, allocations: 0.7982 MB / 0.5589 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004088/0.3644, allocations: 140 kB / 0.559 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.3661, allocations: 0.745 MB / 0.5597 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007819/0.3669, allocations: 0.5066 MB / 0.5602 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.3684, allocations: 0.6574 MB / 0.5609 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003393/0.3718, allocations: 2.118 MB / 0.5629 GB, free: 228 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3718, allocations: 0 / 0.5629 GB, free: 228 kB / 398.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.3718, allocations: 4 kB / 0.5629 GB, free: 224 kB / 398.1 MB Notification: Performance of Transformations before backend: time 7.243e-05/0.3719, allocations: 0 / 0.5629 GB, free: 224 kB / 398.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.004125/0.376, allocations: 1.513 MB / 0.5644 GB, free: 14.67 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.376, allocations: 11.98 kB / 0.5644 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008722/0.3769, allocations: 176.1 kB / 0.5646 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.3786, allocations: 0.7746 MB / 0.5653 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000323/0.379, allocations: 392.6 kB / 0.5657 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001984/0.3792, allocations: 96 kB / 0.5658 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002598/0.3818, allocations: 1.477 MB / 0.5673 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.057e-05/0.3818, allocations: 3.953 kB / 0.5673 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.3819, allocations: 43.98 kB / 0.5673 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/0.382, allocations: 73.97 kB / 0.5674 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002263/0.3843, allocations: 1.269 MB / 0.5686 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008231/0.3925, allocations: 5.11 MB / 0.5736 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.3942, allocations: 0.8146 MB / 0.5744 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008274/0.395, allocations: 464.4 kB / 0.5748 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.765e-05/0.3951, allocations: 9.281 kB / 0.5748 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.3951, allocations: 47.16 kB / 0.5749 GB, free: 3.562 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.076e-06/0.3951, allocations: 0 / 0.5749 GB, free: 3.562 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006683/0.4018, allocations: 2.964 MB / 0.5778 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.454e-05/0.4019, allocations: 115.5 kB / 0.5779 GB, free: 440 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.4031, allocations: 0.6838 MB / 0.5786 GB, free: 15.74 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/0.4031, allocations: 41.7 kB / 0.5786 GB, free: 15.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004484/0.4036, allocations: 0.4884 MB / 0.5791 GB, free: 15.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002909/0.4039, allocations: 285.6 kB / 0.5794 GB, free: 14.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003193/0.4042, allocations: 186.6 kB / 0.5795 GB, free: 14.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000229/0.4044, allocations: 390.7 kB / 0.5799 GB, free: 14.34 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007679/0.4052, allocations: 441.8 kB / 0.5803 GB, free: 13.9 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.4062, allocations: 0.7126 MB / 0.581 GB, free: 13.07 MB / 430.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.005735/0.412, allocations: 2.508 MB / 0.5835 GB, free: 10.45 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.412, allocations: 8 kB / 0.5835 GB, free: 10.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002544/0.4145, allocations: 1.309 MB / 0.5848 GB, free: 9.109 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.4145, allocations: 16.16 kB / 0.5848 GB, free: 9.094 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.4146, allocations: 11.94 kB / 0.5848 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002681/0.4148, allocations: 81.67 kB / 0.5849 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008409/0.4157, allocations: 227.6 kB / 0.5851 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.417, allocations: 1.342 MB / 0.5864 GB, free: 7.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000767/0.4177, allocations: 79.94 kB / 0.5865 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.447e-05/0.4178, allocations: 40 kB / 0.5865 GB, free: 7.191 MB / 430.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.0007222/0.4185, allocations: 409.4 kB / 0.5869 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.4188, allocations: 91.42 kB / 0.587 GB, free: 6.691 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001885/0.4207, allocations: 0.9789 MB / 0.5879 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.321e-05/0.4207, allocations: 24.06 kB / 0.588 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.4207, allocations: 7.938 kB / 0.588 GB, free: 5.664 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.4207, allocations: 4 kB / 0.588 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00431/0.4251, allocations: 2.245 MB / 0.5902 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4251, allocations: 0 / 0.5902 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007204/0.4258, allocations: 135.8 kB / 0.5903 GB, free: 3.215 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001254/0.4259, allocations: 24.84 kB / 0.5903 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.455e-05/0.426, allocations: 12 kB / 0.5903 GB, free: 3.176 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.4272, allocations: 1.283 MB / 0.5916 GB, free: 1.777 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/0.4272, allocations: 8.016 kB / 0.5916 GB, free: 1.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/0.4299, allocations: 1.651 MB / 0.5932 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005398/0.4304, allocations: 175.3 kB / 0.5934 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.4306, allocations: 12 kB / 0.5934 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005342/0.4311, allocations: 51.94 kB / 0.5934 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.4313, allocations: 64.48 kB / 0.5935 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-05/0.4313, allocations: 19.94 kB / 0.5935 GB, free: 15.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007034/0.432, allocations: 483 kB / 0.594 GB, free: 15.31 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.432, allocations: 4 kB / 0.594 GB, free: 15.31 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0011/0.4331, allocations: 267.8 kB / 0.5942 GB, free: 15.05 MB / 446.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.0004274/0.4335, allocations: 158.8 kB / 0.5944 GB, free: 14.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.4357, allocations: 1.116 MB / 0.5955 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4357, allocations: 0 / 0.5955 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009424/0.4367, allocations: 0.573 MB / 0.596 GB, free: 13.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.438, allocations: 228 kB / 0.5962 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00521/0.4432, allocations: 2.633 MB / 0.5988 GB, free: 10.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.4442, allocations: 1.165 MB / 0.6 GB, free: 9.078 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003251/0.4445, allocations: 75.42 kB / 0.6 GB, free: 9.004 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/0.4445, allocations: 4 kB / 0.6 GB, free: 9 MB / 446.1 MB Notification: Performance of Templates: time 0.03107/0.4756, allocations: 21.06 MB / 0.6206 GB, free: 3.977 MB / 462.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 10.325508401030675]