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.000802/0.000802, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004641/0.004641, allocations: 160.5 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8375/0.8375, allocations: 177.1 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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.2141/0.2141, allocations: 29.41 MB / 290.9 MB, free: 2.422 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 431.5 MB, free: 13.09 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.389e-05/1.497e-05, allocations: 7.406 kB / 431.5 MB, free: 13.09 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.005263/0.005278, allocations: 6.739 MB / 438.2 MB, free: 6.312 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002715/0.007993, allocations: 2.707 MB / 440.9 MB, free: 3.598 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.008269, allocations: 35.75 kB / 441 MB, free: 3.562 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007165/0.008985, allocations: 380.5 kB / 441.3 MB, free: 3.191 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.009986, allocations: 0.8199 MB / 442.1 MB, free: 2.367 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.01039, allocations: 319.4 kB / 442.5 MB, free: 2.055 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.01147, allocations: 1.616 MB / 444.1 MB, free: 444 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1421/0.1536, allocations: 1.168 MB / 445.2 MB, free: 44.32 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008611/0.1544, allocations: 0.9205 MB / 446.2 MB, free: 44.32 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005378/0.155, allocations: 0.6791 MB / 446.8 MB, free: 44.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.1551, allocations: 139.6 kB / 447 MB, free: 44.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006361/0.1557, allocations: 0.7044 MB / 447.7 MB, free: 44.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002379/0.156, allocations: 0.5283 MB / 448.2 MB, free: 44.32 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.1562, allocations: 463.2 kB / 448.7 MB, free: 44.32 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.1574, allocations: 2.197 MB / 450.9 MB, free: 44.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.1574, allocations: 1.156 kB / 450.9 MB, free: 44.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1574, allocations: 0 / 450.9 MB, free: 44.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.1574, allocations: 0 / 450.9 MB, free: 44.23 MB / 410.7 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.001521/0.1589, allocations: 1.489 MB / 452.4 MB, free: 43.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.1589, allocations: 10.45 kB / 452.4 MB, free: 43.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003785/0.1593, allocations: 186.6 kB / 452.5 MB, free: 43.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000743/0.1601, allocations: 0.7816 MB / 453.3 MB, free: 43.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.1602, allocations: 390 kB / 453.7 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.1603, allocations: 102.3 kB / 453.8 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1614, allocations: 1.476 MB / 455.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.1614, allocations: 10.98 kB / 455.3 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.1615, allocations: 42.41 kB / 455.3 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.544e-05/0.1616, allocations: 78.83 kB / 455.4 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.1627, allocations: 1.266 MB / 456.7 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003144/0.1658, allocations: 4.572 MB / 461.2 MB, free: 39.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007625/0.1666, allocations: 0.8116 MB / 462.1 MB, free: 38.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003879/0.167, allocations: 457.8 kB / 462.5 MB, free: 38.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.167, allocations: 13.58 kB / 462.5 MB, free: 38.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.167, allocations: 50 kB / 462.6 MB, free: 38.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=74): time 2.074e-06/0.167, allocations: 0 / 462.6 MB, free: 38.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=78): time 0.003048/0.1701, allocations: 2.946 MB / 465.5 MB, free: 37.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.1701, allocations: 116.2 kB / 465.6 MB, free: 37.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.1704, allocations: 0.5631 MB / 466.2 MB, free: 36.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.1705, allocations: 36.92 kB / 466.2 MB, free: 36.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.1706, allocations: 0.5006 MB / 466.7 MB, free: 36.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.173e-05/0.1707, allocations: 275.1 kB / 467 MB, free: 36.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001401/0.1708, allocations: 184.5 kB / 467.2 MB, free: 36.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.604e-05/0.1709, allocations: 385.5 kB / 467.6 MB, free: 35.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003805/0.1713, allocations: 440 kB / 468 MB, free: 35.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004338/0.1717, allocations: 0.7181 MB / 468.7 MB, free: 35.04 MB / 410.7 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.002711/0.1744, allocations: 2.503 MB / 471.2 MB, free: 33.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1744, allocations: 2.688 kB / 471.2 MB, free: 33.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00111/0.1755, allocations: 1.305 MB / 472.5 MB, free: 33.43 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1755, allocations: 8.969 kB / 472.5 MB, free: 33.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1755, allocations: 12.39 kB / 472.5 MB, free: 33.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001436/0.1757, allocations: 81.14 kB / 472.6 MB, free: 33.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004028/0.1761, allocations: 229.4 kB / 472.8 MB, free: 33.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004863/0.1766, allocations: 1.327 MB / 474.2 MB, free: 32.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002866/0.1769, allocations: 75.44 kB / 474.2 MB, free: 32.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.241e-05/0.1769, allocations: 40.44 kB / 474.3 MB, free: 32.1 MB / 410.7 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.0002915/0.1772, allocations: 417.3 kB / 474.7 MB, free: 31.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.807e-05/0.1773, allocations: 74.25 kB / 474.8 MB, free: 31.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008751/0.1782, allocations: 0.9743 MB / 475.7 MB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.1782, allocations: 16.36 kB / 475.7 MB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.1782, allocations: 3.844 kB / 475.8 MB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.1782, allocations: 3.141 kB / 475.8 MB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.1799, allocations: 1.957 MB / 477.7 MB, free: 30.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1799, allocations: 3 kB / 477.7 MB, free: 30.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003335/0.1802, allocations: 142.2 kB / 477.9 MB, free: 30.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.246e-05/0.1803, allocations: 33.53 kB / 477.9 MB, free: 30.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.1803, allocations: 11.69 kB / 477.9 MB, free: 30.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003718/0.1807, allocations: 1.255 MB / 479.2 MB, free: 29.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1807, allocations: 6.812 kB / 479.2 MB, free: 29.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.182, allocations: 1.637 MB / 480.8 MB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.1821, allocations: 162.9 kB / 481 MB, free: 28.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.646e-05/0.1822, allocations: 17.36 kB / 481 MB, free: 28.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002217/0.1824, allocations: 49.7 kB / 481 MB, free: 28.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.134e-05/0.1825, allocations: 64.72 kB / 481.1 MB, free: 28.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.1825, allocations: 16.88 kB / 481.1 MB, free: 28.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002629/0.1828, allocations: 376.4 kB / 481.5 MB, free: 28.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1828, allocations: 1.375 kB / 481.5 MB, free: 28.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006382/0.1834, allocations: 259.6 kB / 481.7 MB, free: 28.09 MB / 410.7 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.0002902/0.1837, allocations: 164.1 kB / 481.9 MB, free: 27.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.1849, allocations: 1.112 MB / 483 MB, free: 27.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1849, allocations: 1.875 kB / 483 MB, free: 27.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005231/0.1854, allocations: 0.5743 MB / 483.6 MB, free: 27.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005516/0.186, allocations: 152.7 kB / 483.7 MB, free: 27.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002587/0.1886, allocations: 2.422 MB / 486.1 MB, free: 26.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.189, allocations: 0.5556 MB / 486.7 MB, free: 25.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.1892, allocations: 69.86 kB / 486.8 MB, free: 25.81 MB / 410.7 MB Notification: Performance of SimCode: time 8.81e-07/0.1892, allocations: 1.25 kB / 486.8 MB, free: 25.81 MB / 410.7 MB Notification: Performance of Templates: time 0.01803/0.2072, allocations: 20.22 MB / 0.4951 GB, free: 20.46 MB / 410.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDC.mat","/var/lib/jenkins/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: 6.526376154273748]