Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.001132/0.001132, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.005608/0.005608, allocations: 160.9 kB / 24.7 MB, free: 9.426 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.8569/0.8569, allocations: 177.2 MB / 205 MB, free: 5.727 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.2235/0.2235, allocations: 29.41 MB / 290.9 MB, free: 2.43 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.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.986e-05/3.168e-05, allocations: 2.281 kB / 431.5 MB, free: 13.11 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004818/0.00485, allocations: 5.084 MB / 436.6 MB, free: 7.992 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.006436, allocations: 1.503 MB / 438.1 MB, free: 6.484 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002058/0.006641, allocations: 23.81 kB / 438.1 MB, free: 6.461 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.006954, allocations: 123 kB / 438.2 MB, free: 6.34 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005324/0.007486, allocations: 325.8 kB / 438.5 MB, free: 6.02 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.00774, allocations: 159.7 kB / 438.7 MB, free: 5.863 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005783/0.008318, allocations: 0.7159 MB / 439.4 MB, free: 5.145 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.008649, allocations: 336.2 kB / 439.7 MB, free: 4.805 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000373/0.009022, allocations: 422.9 kB / 440.1 MB, free: 4.391 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002672/0.009289, allocations: 243.3 kB / 440.4 MB, free: 4.152 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.281e-05/0.009332, allocations: 44 kB / 440.4 MB, free: 4.109 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.897e-05/0.009381, allocations: 48 kB / 440.5 MB, free: 4.062 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.009488, allocations: 167.5 kB / 440.6 MB, free: 3.898 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.009625, allocations: 171.7 kB / 440.8 MB, free: 3.73 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008009/0.01043, allocations: 0.5997 MB / 441.4 MB, free: 3.129 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.01043, allocations: 0 / 441.4 MB, free: 3.129 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.01043, allocations: 3.938 kB / 441.4 MB, free: 3.125 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.01044, allocations: 4 kB / 441.4 MB, free: 3.121 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.000931/0.01137, allocations: 0.7135 MB / 442.1 MB, free: 2.379 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.01141, allocations: 11.98 kB / 442.1 MB, free: 2.367 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.504e-05/0.01148, allocations: 56.61 kB / 442.2 MB, free: 2.312 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005225/0.012, allocations: 396.9 kB / 442.6 MB, free: 1.902 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.646e-05/0.01209, allocations: 92.89 kB / 442.7 MB, free: 1.801 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.176e-05/0.01214, allocations: 48.12 kB / 442.7 MB, free: 1.754 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004968/0.01264, allocations: 0.4931 MB / 443.2 MB, free: 1.219 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.01266, allocations: 3.953 kB / 443.2 MB, free: 1.215 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.01268, allocations: 23.98 kB / 443.2 MB, free: 1.191 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.01269, allocations: 12 kB / 443.2 MB, free: 1.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003826/0.01308, allocations: 339.6 kB / 443.6 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1567/0.1697, allocations: 1.726 MB / 445.3 MB, free: 53.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.17, allocations: 211.5 kB / 445.5 MB, free: 53.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.883e-05/0.1701, allocations: 91.44 kB / 445.6 MB, free: 53.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.1702, allocations: 5.562 kB / 445.6 MB, free: 53.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.1702, allocations: 36.75 kB / 445.6 MB, free: 53.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=20): time 2.174e-06/0.1702, allocations: 0 / 445.6 MB, free: 53.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.001078/0.1713, allocations: 0.7769 MB / 446.4 MB, free: 53.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.1713, allocations: 108.4 kB / 446.5 MB, free: 53.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.1715, allocations: 303.6 kB / 446.8 MB, free: 53.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.1715, allocations: 34.52 kB / 446.8 MB, free: 53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.421e-05/0.1716, allocations: 282.5 kB / 447.1 MB, free: 52.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.315e-05/0.1716, allocations: 80.34 kB / 447.2 MB, free: 52.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.874e-05/0.1717, allocations: 69.55 kB / 447.3 MB, free: 52.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.191e-05/0.1717, allocations: 339 kB / 447.6 MB, free: 52.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.1718, allocations: 81.86 kB / 447.7 MB, free: 52.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.1719, allocations: 221.9 kB / 447.9 MB, free: 52.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006509/0.1726, allocations: 491.4 kB / 448.4 MB, free: 51.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1726, allocations: 3.25 kB / 448.4 MB, free: 51.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004715/0.1731, allocations: 414.7 kB / 448.8 MB, free: 51.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.1731, allocations: 6.438 kB / 448.8 MB, free: 51.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.1731, allocations: 6.312 kB / 448.8 MB, free: 51.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002337/0.1733, allocations: 77.34 kB / 448.9 MB, free: 51.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.1735, allocations: 65.97 kB / 448.9 MB, free: 51.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.1748, allocations: 1.797 MB / 450.7 MB, free: 50.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001366/0.1749, allocations: 14.22 kB / 450.7 MB, free: 50.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.1749, allocations: 19.22 kB / 450.8 MB, free: 50.11 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: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001776/0.1751, allocations: 195.5 kB / 451 MB, free: 49.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.1752, allocations: 31.97 kB / 451 MB, free: 49.94 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.373e-05/0.1752, allocations: 38.41 kB / 451 MB, free: 49.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1752, allocations: 6.938 kB / 451 MB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1752, allocations: 0 / 451 MB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1752, allocations: 3.375 kB / 451 MB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000661/0.1759, allocations: 0.618 MB / 451.7 MB, free: 49.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1759, allocations: 0 / 451.7 MB, free: 49.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.176, allocations: 45.52 kB / 451.7 MB, free: 49.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.504e-05/0.1761, allocations: 24.73 kB / 451.7 MB, free: 49.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.1761, allocations: 7.094 kB / 451.7 MB, free: 49.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004949/0.1766, allocations: 1.26 MB / 453 MB, free: 48.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1766, allocations: 3 kB / 453 MB, free: 48.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004287/0.177, allocations: 0.4931 MB / 453.5 MB, free: 47.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.198e-05/0.1771, allocations: 51.52 kB / 453.5 MB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.1771, allocations: 0 / 453.5 MB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.355e-05/0.1772, allocations: 14.03 kB / 453.6 MB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.078e-05/0.1772, allocations: 19.34 kB / 453.6 MB, free: 47.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.1773, allocations: 3.312 kB / 453.6 MB, free: 47.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001011/0.1774, allocations: 207.5 kB / 453.8 MB, free: 47.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1774, allocations: 0 / 453.8 MB, free: 47.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003317/0.1777, allocations: 88.22 kB / 453.9 MB, free: 47.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * 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.0001016/0.1778, allocations: 107.7 kB / 454 MB, free: 47.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004593/0.1782, allocations: 360.8 kB / 454.3 MB, free: 47.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1782, allocations: 4.25 kB / 454.3 MB, free: 47.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.1784, allocations: 210.9 kB / 454.5 MB, free: 47.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.1788, allocations: 92.89 kB / 454.6 MB, free: 47.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009459/0.1797, allocations: 0.8794 MB / 455.5 MB, free: 46.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001378/0.1799, allocations: 241.9 kB / 455.7 MB, free: 46.65 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.87e-05/0.1799, allocations: 31.16 kB / 455.8 MB, free: 46.65 MB / 410.7 MB Notification: Performance of SimCode: time 7.61e-07/0.1799, allocations: 0 / 455.8 MB, free: 46.65 MB / 410.7 MB Notification: Performance of Templates: time 0.00532/0.1852, allocations: 6.908 MB / 462.7 MB, free: 46.02 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.870777944102883]