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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001241/0.001241, allocations: 176.4 kB / 17.4 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.4 MB / 223.5 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007491/0.0007489, allocations: 91.84 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.17/0.17, allocations: 38.08 MB / 358.2 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004353/0.0004355, allocations: 12 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3192, allocations: 56.32 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1408/0.46, allocations: 100.3 MB / 0.5682 GB, free: 1.953 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.4603, allocations: 103.8 kB / 0.5683 GB, free: 1.855 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0349/0.4952, allocations: 13.03 MB / 0.5811 GB, free: 4.664 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4953, allocations: 0 / 0.5811 GB, free: 4.664 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.856e-05/0.4953, allocations: 12 kB / 0.5811 GB, free: 4.652 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.001128/0.4965, allocations: 0.7276 MB / 0.5818 GB, free: 3.871 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.4965, allocations: 15.97 kB / 0.5818 GB, free: 3.855 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.4966, allocations: 56.28 kB / 0.5819 GB, free: 3.801 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008777/0.4975, allocations: 0.5075 MB / 0.5823 GB, free: 3.246 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.553e-05/0.4976, allocations: 63.25 kB / 0.5824 GB, free: 3.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7e-05/0.4977, allocations: 44.38 kB / 0.5825 GB, free: 3.137 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007806/0.4985, allocations: 0.507 MB / 0.5829 GB, free: 2.586 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.4985, allocations: 7.844 kB / 0.583 GB, free: 2.578 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.4986, allocations: 24 kB / 0.583 GB, free: 2.555 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4986, allocations: 8 kB / 0.583 GB, free: 2.547 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006426/0.4992, allocations: 343.6 kB / 0.5833 GB, free: 2.211 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.5017, allocations: 1.992 MB / 0.5853 GB, free: 104 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004528/0.5021, allocations: 230.9 kB / 0.5855 GB, free: 15.85 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002013/0.5023, allocations: 102.6 kB / 0.5856 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.5024, allocations: 4 kB / 0.5856 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.5024, allocations: 34.56 kB / 0.5856 GB, free: 15.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=20): time 1.834e-06/0.5024, allocations: 4 kB / 0.5856 GB, free: 15.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.00173/0.5042, allocations: 0.8629 MB / 0.5865 GB, free: 14.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/0.5042, allocations: 106.8 kB / 0.5866 GB, free: 14.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.5046, allocations: 325.5 kB / 0.5869 GB, free: 14.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.5046, allocations: 29.7 kB / 0.5869 GB, free: 14.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.5048, allocations: 275.7 kB / 0.5872 GB, free: 14.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.051e-05/0.5049, allocations: 82.84 kB / 0.5872 GB, free: 13.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.5049, allocations: 4 kB / 0.5872 GB, free: 13.93 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.505, allocations: 350.8 kB / 0.5876 GB, free: 13.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.5052, allocations: 83.95 kB / 0.5877 GB, free: 13.49 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002631/0.5055, allocations: 221 kB / 0.5879 GB, free: 13.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.5067, allocations: 0.5719 MB / 0.5884 GB, free: 12.56 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.5067, allocations: 4 kB / 0.5884 GB, free: 12.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009256/0.5077, allocations: 425.6 kB / 0.5888 GB, free: 12.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.5077, allocations: 8 kB / 0.5888 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.5077, allocations: 4 kB / 0.5888 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.5081, allocations: 81.05 kB / 0.5889 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002509/0.5083, allocations: 79.72 kB / 0.589 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/0.5104, allocations: 1.78 MB / 0.5907 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.5106, allocations: 27.98 kB / 0.5908 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.33e-05/0.5107, allocations: 16 kB / 0.5908 GB, free: 10 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002974/0.511, allocations: 201.6 kB / 0.591 GB, free: 9.797 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.492e-05/0.5111, allocations: 35.53 kB / 0.591 GB, free: 9.762 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.261e-05/0.5111, allocations: 43.28 kB / 0.5911 GB, free: 9.719 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.5112, allocations: 4 kB / 0.5911 GB, free: 9.715 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.5112, allocations: 0 / 0.5911 GB, free: 9.715 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5112, allocations: 4.188 kB / 0.5911 GB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.5124, allocations: 0.7728 MB / 0.5918 GB, free: 8.863 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5124, allocations: 11.97 kB / 0.5918 GB, free: 8.852 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.5127, allocations: 55.84 kB / 0.5919 GB, free: 8.797 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-05/0.5128, allocations: 20.84 kB / 0.5919 GB, free: 8.773 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.5128, allocations: 8 kB / 0.5919 GB, free: 8.766 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008641/0.5137, allocations: 1.288 MB / 0.5932 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5137, allocations: 0 / 0.5932 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007413/0.5144, allocations: 0.5163 MB / 0.5937 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.5146, allocations: 120.8 kB / 0.5938 GB, free: 6.664 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.5146, allocations: 8 kB / 0.5938 GB, free: 6.656 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.5148, allocations: 11.98 kB / 0.5938 GB, free: 6.645 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.5149, allocations: 19.92 kB / 0.5938 GB, free: 6.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.5149, allocations: 4 kB / 0.5938 GB, free: 6.621 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000265/0.5152, allocations: 231.2 kB / 0.594 GB, free: 6.398 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5152, allocations: 0 / 0.594 GB, free: 6.398 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005365/0.5157, allocations: 88 kB / 0.5941 GB, free: 6.312 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001932/0.5159, allocations: 131.4 kB / 0.5943 GB, free: 6.176 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007959/0.5167, allocations: 396.1 kB / 0.5946 GB, free: 5.777 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.5168, allocations: 0 / 0.5946 GB, free: 5.777 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003428/0.5171, allocations: 214.6 kB / 0.5948 GB, free: 5.555 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007011/0.5178, allocations: 105.1 kB / 0.5949 GB, free: 5.453 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001772/0.5196, allocations: 1.185 MB / 0.5961 GB, free: 4.227 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.52, allocations: 0.8389 MB / 0.5969 GB, free: 3.363 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.5203, allocations: 51.25 kB / 0.597 GB, free: 3.312 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.873e-05/0.5203, allocations: 27.44 kB / 0.597 GB, free: 3.285 MB / 426.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5203, allocations: 0 / 0.597 GB, free: 3.285 MB / 426.7 MB Notification: Performance of Templates: time 0.009056/0.5294, allocations: 4.473 MB / 0.6014 GB, free: 14.82 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (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) 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches