Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|power.p|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001421/0.001421, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.606/1.606, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008562/0.0008563, allocations: 90.62 kB / 267.5 MB, free: 14.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2115/0.2115, allocations: 37.97 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.133e-05/3.173e-05, allocations: 8 kB / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 56.32 MB / 474 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3899/0.4931, allocations: 102.6 MB / 0.5632 GB, free: 88 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001638/0.4948, allocations: 0.6917 MB / 0.5639 GB, free: 15.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04399/0.5388, allocations: 16.71 MB / 0.5802 GB, free: 1.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5389, allocations: 0 / 0.5802 GB, free: 1.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.309e-05/0.5389, allocations: 19.92 kB / 0.5802 GB, free: 1.551 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001408/0.5403, allocations: 0.7689 MB / 0.5809 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.5404, allocations: 8.031 kB / 0.5809 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.5405, allocations: 67.2 kB / 0.581 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001707/0.5423, allocations: 0.7542 MB / 0.5817 GB, free: 52 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.5423, allocations: 32.5 kB / 0.5818 GB, free: 36 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.826e-05/0.5424, allocations: 55.23 kB / 0.5818 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007409/0.5432, allocations: 0.5067 MB / 0.5823 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.5432, allocations: 3.875 kB / 0.5823 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.534e-05/0.5433, allocations: 23.25 kB / 0.5824 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.5433, allocations: 11.94 kB / 0.5824 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.5438, allocations: 321.8 kB / 0.5827 GB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002405/0.5462, allocations: 2.082 MB / 0.5847 GB, free: 13.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.5466, allocations: 229.9 kB / 0.5849 GB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.5467, allocations: 77.62 kB / 0.585 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.5467, allocations: 4.234 kB / 0.585 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.547, allocations: 171.9 kB / 0.5852 GB, free: 13.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 2.865e-06/0.547, allocations: 0 / 0.5852 GB, free: 13.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.001599/0.5486, allocations: 0.8542 MB / 0.586 GB, free: 12.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.564e-05/0.5487, allocations: 132.5 kB / 0.5861 GB, free: 12.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004248/0.5492, allocations: 376.7 kB / 0.5865 GB, free: 11.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.5492, allocations: 33.58 kB / 0.5865 GB, free: 11.76 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.5494, allocations: 291.7 kB / 0.5868 GB, free: 11.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.337e-05/0.5494, allocations: 92.55 kB / 0.5869 GB, free: 11.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.5495, allocations: 9.375 kB / 0.5869 GB, free: 11.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.5496, allocations: 354.1 kB / 0.5872 GB, free: 11.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.5497, allocations: 82.61 kB / 0.5873 GB, free: 11.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.55, allocations: 222.1 kB / 0.5875 GB, free: 10.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.5502, allocations: 120.1 kB / 0.5876 GB, free: 10.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.5502, allocations: 4 kB / 0.5876 GB, free: 10.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007782/0.551, allocations: 429.3 kB / 0.588 GB, free: 10.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.551, allocations: 11.95 kB / 0.5881 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.551, allocations: 4 kB / 0.5881 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004072/0.5514, allocations: 96.88 kB / 0.5882 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.5517, allocations: 75.53 kB / 0.5882 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00189/0.5536, allocations: 1.686 MB / 0.5899 GB, free: 8.605 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.5539, allocations: 21.48 kB / 0.5899 GB, free: 8.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.5539, allocations: 23.12 kB / 0.5899 GB, free: 8.57 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.5541, allocations: 128 kB / 0.59 GB, free: 8.449 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.936e-05/0.5541, allocations: 47.39 kB / 0.5901 GB, free: 8.402 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005753/0.5547, allocations: 276.1 kB / 0.5903 GB, free: 8.191 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.5547, allocations: 4 kB / 0.5903 GB, free: 8.188 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.5547, allocations: 0 / 0.5903 GB, free: 8.188 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.5548, allocations: 7.984 kB / 0.5904 GB, free: 8.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.5559, allocations: 0.7657 MB / 0.5911 GB, free: 7.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.5559, allocations: 3.938 kB / 0.5911 GB, free: 7.516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.5562, allocations: 47.59 kB / 0.5912 GB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002095/0.5564, allocations: 44.19 kB / 0.5912 GB, free: 7.434 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.5565, allocations: 15.52 kB / 0.5912 GB, free: 7.422 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.5576, allocations: 1.427 MB / 0.5926 GB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5576, allocations: 4.062 kB / 0.5926 GB, free: 5.957 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006721/0.5583, allocations: 0.4908 MB / 0.5931 GB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.5585, allocations: 146.6 kB / 0.5932 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.898e-05/0.5585, allocations: 7.688 kB / 0.5932 GB, free: 5.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.5588, allocations: 11.62 kB / 0.5932 GB, free: 5.359 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.325e-05/0.5588, allocations: 27.42 kB / 0.5933 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.5589, allocations: 11.98 kB / 0.5933 GB, free: 5.324 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003301/0.5592, allocations: 289.3 kB / 0.5936 GB, free: 5.105 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5592, allocations: 0 / 0.5936 GB, free: 5.105 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005982/0.5598, allocations: 128.1 kB / 0.5937 GB, free: 4.996 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008902/0.5607, allocations: 392.7 kB / 0.5941 GB, free: 4.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007463/0.5615, allocations: 383 kB / 0.5944 GB, free: 4.344 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.5615, allocations: 4 kB / 0.5944 GB, free: 4.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003474/0.5619, allocations: 229.4 kB / 0.5946 GB, free: 4.133 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.5625, allocations: 125.8 kB / 0.5948 GB, free: 4.035 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.5641, allocations: 0.8897 MB / 0.5956 GB, free: 3.199 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.5645, allocations: 0.8939 MB / 0.5965 GB, free: 2.293 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002755/0.5648, allocations: 64.23 kB / 0.5966 GB, free: 2.227 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.42e-05/0.5649, allocations: 39.36 kB / 0.5966 GB, free: 2.188 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5649, allocations: 0 / 0.5966 GB, free: 2.188 MB / 394.7 MB Notification: Performance of Templates: time 0.01244/0.5773, allocations: 6.354 MB / 0.6028 GB, free: 11.84 MB / 410.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches