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.001186/0.001186, allocations: 83.98 kB / 20.68 MB, free: 1.035 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.001244/0.001244, allocations: 164.3 kB / 23.96 MB, free: 4.16 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.381/1.381, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 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.1719/0.1719, allocations: 29.43 MB / 290.1 MB, free: 3.293 MB / 270.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.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.463e-06/1.463e-06, allocations: 0 / 430.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/2.918e-05, allocations: 10.16 kB / 430.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006811/0.00684, allocations: 5.087 MB / 435.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.009373, allocations: 1.499 MB / 437.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.009591, allocations: 23.81 kB / 437.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004172/0.01001, allocations: 127 kB / 437.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007857/0.01079, allocations: 329.8 kB / 437.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003968/0.01119, allocations: 151.7 kB / 437.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009294/0.01212, allocations: 0.7196 MB / 438.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004819/0.0126, allocations: 328.2 kB / 439 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005611/0.01316, allocations: 414.9 kB / 439.4 MB, free: 9.258 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004056/0.01357, allocations: 247.2 kB / 439.6 MB, free: 9.016 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.696e-05/0.01365, allocations: 48 kB / 439.7 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.219e-05/0.01374, allocations: 44 kB / 439.7 MB, free: 8.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.01392, allocations: 167.5 kB / 439.9 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.01415, allocations: 179.7 kB / 440 MB, free: 8.586 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007318/0.01488, allocations: 0.5997 MB / 440.6 MB, free: 7.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.01489, allocations: 0 / 440.6 MB, free: 7.984 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.01489, allocations: 0 / 440.6 MB, free: 7.984 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.432e-05/0.0149, allocations: 0 / 440.6 MB, free: 7.984 MB / 366.1 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.001375/0.01628, allocations: 0.7168 MB / 441.4 MB, free: 7.238 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.01632, allocations: 16.03 kB / 441.4 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.01643, allocations: 52.61 kB / 441.4 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007426/0.01718, allocations: 396.9 kB / 441.8 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.01731, allocations: 92.95 kB / 441.9 MB, free: 6.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.794e-05/0.0174, allocations: 48.12 kB / 441.9 MB, free: 6.613 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008742/0.01827, allocations: 0.5008 MB / 442.4 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.01829, allocations: 4 kB / 442.4 MB, free: 6.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.323e-05/0.01834, allocations: 23.94 kB / 442.5 MB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.01835, allocations: 12 kB / 442.5 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006549/0.01901, allocations: 339.7 kB / 442.8 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.02124, allocations: 1.729 MB / 444.5 MB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000456/0.02169, allocations: 210 kB / 444.8 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.0219, allocations: 86.66 kB / 444.8 MB, free: 3.555 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.02192, allocations: 8 kB / 444.8 MB, free: 3.547 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.02196, allocations: 38.5 kB / 444.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.02196, allocations: 0 / 444.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001707/0.02367, allocations: 0.7758 MB / 445.7 MB, free: 2.688 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.974e-05/0.02375, allocations: 110.8 kB / 445.8 MB, free: 2.555 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.02408, allocations: 308.4 kB / 446.1 MB, free: 2.242 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.0241, allocations: 25.7 kB / 446.1 MB, free: 2.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.02431, allocations: 284.1 kB / 446.4 MB, free: 1.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.822e-05/0.02438, allocations: 75.38 kB / 446.4 MB, free: 1.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.02448, allocations: 65.91 kB / 446.5 MB, free: 1.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.02465, allocations: 346.8 kB / 446.8 MB, free: 1.438 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.02486, allocations: 87.89 kB / 446.9 MB, free: 1.352 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.02517, allocations: 220.9 kB / 447.1 MB, free: 1.074 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.02638, allocations: 491.7 kB / 447.6 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.02638, allocations: 0 / 447.6 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008825/0.02727, allocations: 425.3 kB / 448 MB, free: 116 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.02728, allocations: 4 kB / 448 MB, free: 112 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.02729, allocations: 7.938 kB / 448.1 MB, free: 104 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003292/0.02762, allocations: 76.78 kB / 448.1 MB, free: 24 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1788/0.2064, allocations: 69.39 kB / 448.2 MB, free: 29.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.2081, allocations: 1.777 MB / 450 MB, free: 28.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/0.2084, allocations: 22.31 kB / 450 MB, free: 28.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.2084, allocations: 14.03 kB / 450 MB, free: 28.66 MB / 366.1 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.0002411/0.2087, allocations: 192.5 kB / 450.2 MB, free: 28.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.848e-05/0.2087, allocations: 33.02 kB / 450.2 MB, free: 28.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.164e-05/0.2088, allocations: 40.84 kB / 450.3 MB, free: 28.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2088, allocations: 3.188 kB / 450.3 MB, free: 28.49 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2088, allocations: 6.031 kB / 450.3 MB, free: 28.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.2088, allocations: 7.391 kB / 450.3 MB, free: 28.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.21, allocations: 0.6133 MB / 450.9 MB, free: 28.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.21, allocations: 0 / 450.9 MB, free: 28.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.2102, allocations: 46.89 kB / 450.9 MB, free: 28.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.381e-05/0.2103, allocations: 26.47 kB / 451 MB, free: 28.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.2103, allocations: 6.891 kB / 451 MB, free: 28.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006253/0.2109, allocations: 1.246 MB / 452.2 MB, free: 26.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2109, allocations: 2.906 kB / 452.2 MB, free: 26.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007099/0.2117, allocations: 0.5055 MB / 452.7 MB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.805e-05/0.2117, allocations: 44.84 kB / 452.8 MB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.852e-05/0.2118, allocations: 5.359 kB / 452.8 MB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.212, allocations: 10.52 kB / 452.8 MB, free: 26.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.275e-05/0.212, allocations: 23.56 kB / 452.8 MB, free: 26.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.2121, allocations: 4.922 kB / 452.8 MB, free: 26.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002028/0.2123, allocations: 207 kB / 453 MB, free: 26.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2123, allocations: 0 / 453 MB, free: 26.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000527/0.2128, allocations: 86.38 kB / 453.1 MB, free: 26.4 MB / 366.1 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.0001071/0.2129, allocations: 104.8 kB / 453.2 MB, free: 26.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007025/0.2136, allocations: 365.8 kB / 453.6 MB, free: 26.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.2136, allocations: 1.344 kB / 453.6 MB, free: 26.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.2139, allocations: 211.3 kB / 453.8 MB, free: 25.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.2146, allocations: 93.02 kB / 453.9 MB, free: 25.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.216, allocations: 0.8428 MB / 454.7 MB, free: 25.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.2162, allocations: 242 kB / 454.9 MB, free: 25.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.2164, allocations: 48.38 kB / 455 MB, free: 25.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.111e-05/0.2165, allocations: 31.48 kB / 455 MB, free: 25.35 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2165, allocations: 0 / 455 MB, free: 25.35 MB / 366.1 MB Notification: Performance of Templates: time 0.009836/0.2263, allocations: 4.011 MB / 459 MB, free: 24.91 MB / 366.1 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.58467660471797]