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.0008824/0.0008824, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.0009408/0.0009408, allocations: 167.6 kB / 25.61 MB, free: 8.902 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.9463/0.9463, allocations: 177.1 MB / 206 MB, free: 4.504 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.1276/0.1276, allocations: 29.43 MB / 292 MB, free: 2.668 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.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.483e-06/1.483e-06, allocations: 0 / 370.9 MB, free: 32.34 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.447e-05/1.595e-05, allocations: 3.312 kB / 370.9 MB, free: 32.34 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005584/0.0056, allocations: 4.801 MB / 375.7 MB, free: 27.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.007921, allocations: 1.554 MB / 377.2 MB, free: 25.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003209/0.008242, allocations: 27.75 kB / 377.3 MB, free: 25.93 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003964/0.008638, allocations: 123 kB / 377.4 MB, free: 25.81 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007208/0.009359, allocations: 325.9 kB / 377.7 MB, free: 25.49 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.009706, allocations: 155.6 kB / 377.8 MB, free: 25.34 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007498/0.01046, allocations: 0.7198 MB / 378.6 MB, free: 24.62 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003931/0.01085, allocations: 344.3 kB / 378.9 MB, free: 24.28 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005114/0.01136, allocations: 423 kB / 379.3 MB, free: 23.86 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003303/0.01169, allocations: 247.3 kB / 379.6 MB, free: 23.62 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.117e-05/0.01175, allocations: 44 kB / 379.6 MB, free: 23.58 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.099e-05/0.01182, allocations: 48 kB / 379.6 MB, free: 23.53 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.01195, allocations: 167.5 kB / 379.8 MB, free: 23.37 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001722/0.01212, allocations: 183.7 kB / 380 MB, free: 23.19 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004118/0.01254, allocations: 386.7 kB / 380.4 MB, free: 22.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.01254, allocations: 3.938 kB / 380.4 MB, free: 22.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.01254, allocations: 3.938 kB / 380.4 MB, free: 22.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.01255, allocations: 0 / 380.4 MB, free: 22.8 MB / 314.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.0008012/0.01335, allocations: 0.8094 MB / 381.2 MB, free: 21.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.01338, allocations: 12.03 kB / 381.2 MB, free: 21.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.972e-05/0.01346, allocations: 88.61 kB / 381.3 MB, free: 21.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004573/0.01391, allocations: 403.7 kB / 381.7 MB, free: 21.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.687e-05/0.01399, allocations: 88.91 kB / 381.8 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.896e-05/0.01405, allocations: 52.11 kB / 381.8 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.01447, allocations: 385.8 kB / 382.2 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.01449, allocations: 19.88 kB / 382.2 MB, free: 20.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.01452, allocations: 16 kB / 382.2 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.01454, allocations: 19.98 kB / 382.2 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.01474, allocations: 134.8 kB / 382.4 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.01614, allocations: 2.131 MB / 384.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.01634, allocations: 171.7 kB / 384.7 MB, free: 18.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.622e-05/0.01641, allocations: 63.16 kB / 384.7 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.01643, allocations: 4 kB / 384.7 MB, free: 18.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.01644, allocations: 41.39 kB / 384.8 MB, free: 18.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.523e-06/0.01644, allocations: 0 / 384.8 MB, free: 18.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005656/0.01701, allocations: 457.7 kB / 385.2 MB, free: 17.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.049e-05/0.01703, allocations: 111 kB / 385.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.01716, allocations: 350 kB / 385.7 MB, free: 17.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.01718, allocations: 33.7 kB / 385.7 MB, free: 17.08 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.303e-05/0.01726, allocations: 330.8 kB / 386 MB, free: 16.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.01729, allocations: 75.36 kB / 386.1 MB, free: 16.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-05/0.01734, allocations: 79.27 kB / 386.2 MB, free: 16.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.06e-05/0.01739, allocations: 0.5196 MB / 386.7 MB, free: 16.06 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.562e-05/0.01743, allocations: 31.97 kB / 386.7 MB, free: 16.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.308e-05/0.0175, allocations: 221.6 kB / 387 MB, free: 15.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.0177, allocations: 342.7 kB / 387.3 MB, free: 15.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.01771, allocations: 4 kB / 387.3 MB, free: 15.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003079/0.01801, allocations: 308.6 kB / 387.6 MB, free: 15 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.01803, allocations: 11.94 kB / 387.6 MB, free: 14.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.01803, allocations: 4 kB / 387.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001914/0.01822, allocations: 80.08 kB / 387.7 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.01834, allocations: 67.91 kB / 387.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008731/0.01921, allocations: 2.187 MB / 389.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.345e-05/0.01931, allocations: 19.94 kB / 390 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.01932, allocations: 19.98 kB / 390 MB, free: 12.5 MB / 314.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 7.867e-05/0.0194, allocations: 180.5 kB / 390.2 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.01944, allocations: 43.81 kB / 390.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.01947, allocations: 35.11 kB / 390.2 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.01947, allocations: 4 kB / 390.2 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.01948, allocations: 4.031 kB / 390.2 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.01948, allocations: 3.984 kB / 390.2 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004182/0.0199, allocations: 0.536 MB / 390.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.0199, allocations: 4 kB / 390.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.02001, allocations: 35.98 kB / 390.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.388e-05/0.02007, allocations: 27.61 kB / 390.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.02008, allocations: 8.031 kB / 390.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003532/0.02043, allocations: 1.709 MB / 392.6 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.02043, allocations: 0 / 392.6 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.02064, allocations: 0.4891 MB / 393.1 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.189e-05/0.02069, allocations: 43.75 kB / 393.1 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.0207, allocations: 8.125 kB / 393.1 MB, free: 9.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.326e-05/0.0208, allocations: 7.984 kB / 393.1 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.378e-05/0.02083, allocations: 19.97 kB / 393.1 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.02084, allocations: 4 kB / 393.1 MB, free: 9.141 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.423e-05/0.0209, allocations: 218.9 kB / 393.4 MB, free: 8.926 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.0209, allocations: 0 / 393.4 MB, free: 8.926 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002782/0.02118, allocations: 91.94 kB / 393.4 MB, free: 8.836 MB / 314.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 6.866e-05/0.02125, allocations: 106.3 kB / 393.5 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002853/0.02153, allocations: 350.6 kB / 393.9 MB, free: 8.359 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.02154, allocations: 0 / 393.9 MB, free: 8.359 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.02165, allocations: 246.5 kB / 394.1 MB, free: 8.098 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.02202, allocations: 92.48 kB / 394.2 MB, free: 8.012 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.02307, allocations: 0.8543 MB / 395.1 MB, free: 7.113 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.595e-05/0.02312, allocations: 133.2 kB / 395.2 MB, free: 6.961 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.909e-05/0.0232, allocations: 35.28 kB / 395.2 MB, free: 6.926 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.02331, allocations: 150.1 kB / 395.4 MB, free: 6.777 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.02331, allocations: 0 / 395.4 MB, free: 6.777 MB / 314.7 MB Notification: Performance of Templates: time 0.005725/0.02904, allocations: 4.478 MB / 399.9 MB, free: 2.41 MB / 314.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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.258041033986956]