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.001372/0.001372, allocations: 69.72 kB / 21.24 MB, free: 0.5547 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.001468/0.001468, allocations: 162.5 kB / 24.5 MB, free: 3.711 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.489/1.489, allocations: 177.2 MB / 204.9 MB, free: 9.012 MB / 190.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.1931/0.1931, allocations: 29.42 MB / 290.7 MB, free: 3.273 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: 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.002233/0.002233, allocations: 59.91 kB / 431.2 MB, free: 3.211 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3582, allocations: 62.44 MB / 493.6 MB, free: 37.76 MB / 446.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005534/0.3637, allocations: 5.094 MB / 498.7 MB, free: 34.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.3657, allocations: 1.499 MB / 0.4885 GB, free: 33.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.3659, allocations: 28.88 kB / 0.4885 GB, free: 33.33 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003419/0.3662, allocations: 119.7 kB / 0.4887 GB, free: 33.27 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005674/0.3668, allocations: 314.2 kB / 0.489 GB, free: 33.08 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.3671, allocations: 162.4 kB / 0.4891 GB, free: 32.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006348/0.3677, allocations: 0.6933 MB / 0.4898 GB, free: 32.65 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003597/0.3681, allocations: 333.5 kB / 0.4901 GB, free: 32.5 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003365/0.3684, allocations: 301.2 kB / 0.4904 GB, free: 32.37 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003753/0.3688, allocations: 285.5 kB / 0.4907 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.193e-05/0.3689, allocations: 47.91 kB / 0.4907 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.658e-05/0.3689, allocations: 47.78 kB / 0.4908 GB, free: 32.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.3691, allocations: 151.9 kB / 0.4909 GB, free: 32.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001926/0.3693, allocations: 213.8 kB / 0.4911 GB, free: 32.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004974/0.3698, allocations: 0.6029 MB / 0.4917 GB, free: 31.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3698, allocations: 0 / 0.4917 GB, free: 31.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3698, allocations: 0 / 0.4917 GB, free: 31.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.3698, allocations: 0 / 0.4917 GB, free: 31.82 MB / 446.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.001275/0.3711, allocations: 0.7241 MB / 0.4924 GB, free: 31.31 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3711, allocations: 17.14 kB / 0.4924 GB, free: 31.31 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.774e-05/0.3712, allocations: 57.97 kB / 0.4925 GB, free: 31.28 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006428/0.3718, allocations: 390.9 kB / 0.4928 GB, free: 31.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.496e-05/0.3719, allocations: 90.38 kB / 0.4929 GB, free: 30.94 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.837e-05/0.372, allocations: 42.56 kB / 0.493 GB, free: 30.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.3727, allocations: 0.4998 MB / 0.4935 GB, free: 30.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.3727, allocations: 3.094 kB / 0.4935 GB, free: 30.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.3728, allocations: 19.03 kB / 0.4935 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.3728, allocations: 12.25 kB / 0.4935 GB, free: 30.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005427/0.3733, allocations: 337.8 kB / 0.4938 GB, free: 30.53 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.3751, allocations: 1.741 MB / 0.4955 GB, free: 29.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003861/0.3755, allocations: 204.4 kB / 0.4957 GB, free: 29.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.3756, allocations: 94.86 kB / 0.4958 GB, free: 28.97 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.3756, allocations: 11.2 kB / 0.4958 GB, free: 28.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.3757, allocations: 37.62 kB / 0.4958 GB, free: 28.92 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.3757, allocations: 4 kB / 0.4958 GB, free: 28.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=22): time 0.001443/0.3771, allocations: 0.7782 MB / 0.4966 GB, free: 28.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.3772, allocations: 109.5 kB / 0.4967 GB, free: 28.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.3774, allocations: 307.1 kB / 0.497 GB, free: 28.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.3774, allocations: 29.89 kB / 0.497 GB, free: 28.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.3776, allocations: 285.6 kB / 0.4973 GB, free: 27.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.3776, allocations: 83.11 kB / 0.4974 GB, free: 27.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.545e-05/0.3777, allocations: 70.22 kB / 0.4975 GB, free: 27.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.84e-05/0.3778, allocations: 339.5 kB / 0.4978 GB, free: 27.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.378, allocations: 85.58 kB / 0.4979 GB, free: 27.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.3782, allocations: 219.1 kB / 0.4981 GB, free: 27.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009957/0.3792, allocations: 497.2 kB / 0.4985 GB, free: 26.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3792, allocations: 0 / 0.4985 GB, free: 26.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007087/0.3799, allocations: 412.5 kB / 0.4989 GB, free: 26.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3799, allocations: 14.25 kB / 0.4989 GB, free: 26.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3799, allocations: 6.531 kB / 0.499 GB, free: 26.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003028/0.3802, allocations: 67.91 kB / 0.499 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002233/0.3804, allocations: 68.98 kB / 0.4991 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001547/0.382, allocations: 1.788 MB / 0.5008 GB, free: 25.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.3822, allocations: 17.08 kB / 0.5008 GB, free: 25.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.3822, allocations: 16.09 kB / 0.5009 GB, free: 25.09 MB / 446.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.0001803/0.3824, allocations: 201.8 kB / 0.5011 GB, free: 24.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.331e-05/0.3824, allocations: 35.58 kB / 0.5011 GB, free: 24.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.039e-05/0.3825, allocations: 36.33 kB / 0.5011 GB, free: 24.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.3825, allocations: 0 / 0.5011 GB, free: 24.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3825, allocations: 7.25 kB / 0.5011 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.3825, allocations: 0 / 0.5011 GB, free: 24.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009149/0.3834, allocations: 0.6166 MB / 0.5017 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.3834, allocations: 3.562 kB / 0.5017 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.3837, allocations: 45.8 kB / 0.5018 GB, free: 24.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.805e-05/0.3837, allocations: 26.05 kB / 0.5018 GB, free: 24.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.3837, allocations: 14.33 kB / 0.5018 GB, free: 24.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005865/0.3843, allocations: 1.249 MB / 0.503 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3843, allocations: 6.844 kB / 0.503 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005997/0.3849, allocations: 0.4965 MB / 0.5035 GB, free: 22.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.702e-05/0.385, allocations: 40.05 kB / 0.5036 GB, free: 22.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.385, allocations: 7.938 kB / 0.5036 GB, free: 22.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.3852, allocations: 14.08 kB / 0.5036 GB, free: 22.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.244e-05/0.3853, allocations: 21.05 kB / 0.5036 GB, free: 22.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.3853, allocations: 14.03 kB / 0.5036 GB, free: 22.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001872/0.3855, allocations: 204.1 kB / 0.5038 GB, free: 22.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3855, allocations: 0 / 0.5038 GB, free: 22.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005086/0.386, allocations: 88.06 kB / 0.5039 GB, free: 22.69 MB / 446.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 9.51e-05/0.3861, allocations: 98.41 kB / 0.504 GB, free: 22.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006382/0.3867, allocations: 368.1 kB / 0.5043 GB, free: 22.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3868, allocations: 0 / 0.5043 GB, free: 22.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002796/0.387, allocations: 214.1 kB / 0.5045 GB, free: 22.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006086/0.3876, allocations: 93.03 kB / 0.5046 GB, free: 22.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.389, allocations: 0.9377 MB / 0.5056 GB, free: 21.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/0.3893, allocations: 235 kB / 0.5058 GB, free: 21.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001455/0.3894, allocations: 50.62 kB / 0.5058 GB, free: 21.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.619e-05/0.3895, allocations: 27.53 kB / 0.5059 GB, free: 21.5 MB / 446.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3895, allocations: 0 / 0.5059 GB, free: 21.5 MB / 446.1 MB Notification: Performance of Templates: time 0.008464/0.3979, allocations: 4.029 MB / 0.5098 GB, free: 20.99 MB / 446.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins1/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: 5.27499834203627]