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.001902/0.001902, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.00218/0.00218, allocations: 209 kB / 24.48 MB, free: 3.938 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.554/1.554, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.1881/0.1881, allocations: 38.54 MB / 353.2 MB, free: 12.33 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.002125/0.002125, allocations: 75.83 kB / 493.7 MB, free: 4.203 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3105, allocations: 62.46 MB / 0.5432 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009258/0.3198, allocations: 6.766 MB / 0.5498 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.3248, allocations: 2.695 MB / 0.5524 GB, free: 9.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004845/0.3252, allocations: 38.31 kB / 0.5524 GB, free: 9.195 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.3265, allocations: 385.3 kB / 0.5528 GB, free: 8.898 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002004/0.3285, allocations: 0.8042 MB / 0.5536 GB, free: 8.301 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007452/0.3292, allocations: 306.9 kB / 0.5539 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002066/0.3313, allocations: 1.582 MB / 0.5554 GB, free: 7.141 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.3328, allocations: 1.169 MB / 0.5566 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.334, allocations: 0.688 MB / 0.5572 GB, free: 5.758 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.3351, allocations: 0.7358 MB / 0.558 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002188/0.3353, allocations: 143.9 kB / 0.5581 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001283/0.3366, allocations: 0.6982 MB / 0.5588 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005376/0.3372, allocations: 0.5066 MB / 0.5593 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006472/0.3378, allocations: 0.5369 MB / 0.5598 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002481/0.3403, allocations: 2.126 MB / 0.5619 GB, free: 1 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3403, allocations: 4 kB / 0.5619 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3403, allocations: 0 / 0.5619 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.702e-05/0.3403, allocations: 0 / 0.5619 GB, free: 0.9961 MB / 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.003194/0.3435, allocations: 1.509 MB / 0.5634 GB, free: 15.45 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3436, allocations: 15.92 kB / 0.5634 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007201/0.3443, allocations: 180.1 kB / 0.5635 GB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/0.346, allocations: 0.7746 MB / 0.5643 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003436/0.3463, allocations: 384.7 kB / 0.5647 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/0.3465, allocations: 104 kB / 0.5648 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002495/0.349, allocations: 1.469 MB / 0.5662 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.954e-05/0.349, allocations: 7.953 kB / 0.5662 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.3491, allocations: 44 kB / 0.5662 GB, free: 12.33 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001445/0.3493, allocations: 73.97 kB / 0.5663 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002257/0.3515, allocations: 1.272 MB / 0.5676 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007374/0.3589, allocations: 4.565 MB / 0.572 GB, free: 6.277 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.3605, allocations: 0.8186 MB / 0.5728 GB, free: 5.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008132/0.3613, allocations: 464.3 kB / 0.5733 GB, free: 4.969 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.3614, allocations: 12.66 kB / 0.5733 GB, free: 4.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.3614, allocations: 47.22 kB / 0.5733 GB, free: 4.902 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.006e-06/0.3614, allocations: 4 kB / 0.5733 GB, free: 4.898 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006343/0.3677, allocations: 2.948 MB / 0.5762 GB, free: 1.918 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/0.3678, allocations: 107.5 kB / 0.5763 GB, free: 1.789 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007354/0.3686, allocations: 0.5689 MB / 0.5769 GB, free: 1.211 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.833e-05/0.3686, allocations: 37.7 kB / 0.5769 GB, free: 1.168 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003857/0.369, allocations: 0.4962 MB / 0.5774 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002552/0.3693, allocations: 281.6 kB / 0.5776 GB, free: 396 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.3695, allocations: 186.6 kB / 0.5778 GB, free: 204 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002375/0.3698, allocations: 382.8 kB / 0.5782 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007642/0.3705, allocations: 441.8 kB / 0.5786 GB, free: 15.38 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.3716, allocations: 0.7204 MB / 0.5793 GB, free: 14.54 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.005834/0.3774, allocations: 2.504 MB / 0.5818 GB, free: 11.92 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.403e-06/0.3774, allocations: 4 kB / 0.5818 GB, free: 11.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002347/0.3798, allocations: 1.305 MB / 0.583 GB, free: 10.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3798, allocations: 8 kB / 0.583 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.3798, allocations: 12 kB / 0.5831 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002551/0.3801, allocations: 81.61 kB / 0.5831 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000863/0.3809, allocations: 223.6 kB / 0.5833 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.3822, allocations: 1.327 MB / 0.5846 GB, free: 8.836 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006203/0.3828, allocations: 79.88 kB / 0.5847 GB, free: 8.758 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-05/0.3829, allocations: 40 kB / 0.5848 GB, free: 8.719 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.0006184/0.3835, allocations: 421.3 kB / 0.5852 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.3837, allocations: 71.53 kB / 0.5852 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00181/0.3855, allocations: 0.9703 MB / 0.5862 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-05/0.3855, allocations: 16 kB / 0.5862 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3855, allocations: 0 / 0.5862 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.3855, allocations: 3.984 kB / 0.5862 GB, free: 7.227 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003707/0.3892, allocations: 1.954 MB / 0.5881 GB, free: 5.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.3892, allocations: 4 kB / 0.5881 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007375/0.39, allocations: 147.8 kB / 0.5882 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.502e-05/0.3901, allocations: 24.89 kB / 0.5883 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.385e-05/0.3901, allocations: 15.98 kB / 0.5883 GB, free: 5.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.3912, allocations: 1.252 MB / 0.5895 GB, free: 3.684 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3912, allocations: 3.984 kB / 0.5895 GB, free: 3.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.3938, allocations: 1.643 MB / 0.5911 GB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004864/0.3943, allocations: 159.5 kB / 0.5913 GB, free: 1.852 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.3944, allocations: 19.92 kB / 0.5913 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.3949, allocations: 47.94 kB / 0.5913 GB, free: 1.785 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.395, allocations: 60.55 kB / 0.5914 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.564e-05/0.3951, allocations: 16 kB / 0.5914 GB, free: 1.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005607/0.3956, allocations: 382.8 kB / 0.5918 GB, free: 1.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3956, allocations: 0 / 0.5918 GB, free: 1.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001013/0.3967, allocations: 255.9 kB / 0.592 GB, free: 1.09 MB / 430.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.0003946/0.3971, allocations: 162.8 kB / 0.5922 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.3991, allocations: 1.115 MB / 0.5933 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3991, allocations: 3.938 kB / 0.5933 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009382/0.4001, allocations: 0.5819 MB / 0.5938 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009348/0.401, allocations: 160.3 kB / 0.594 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004766/0.4058, allocations: 2.602 MB / 0.5965 GB, free: 12.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006786/0.4064, allocations: 0.5553 MB / 0.5971 GB, free: 11.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.4067, allocations: 71.41 kB / 0.5971 GB, free: 11.74 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4067, allocations: 4 kB / 0.5971 GB, free: 11.73 MB / 446.1 MB Notification: Performance of Templates: time 0.02769/0.4344, allocations: 20.13 MB / 0.6168 GB, free: 7.613 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.620292397681624]