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.00103/0.00103, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008527/0.0008528, allocations: 86.8 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1789/0.1789, allocations: 37.98 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.03e-05/2.032e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 56.34 MB / 466.9 MB, free: 6.559 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3939/0.5026, allocations: 102 MB / 0.5555 GB, free: 8.93 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001637/0.5043, allocations: 0.5815 MB / 0.5561 GB, free: 8.348 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04553/0.5499, allocations: 16.53 MB / 0.5723 GB, free: 7.645 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5499, allocations: 0 / 0.5723 GB, free: 7.645 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.489e-05/0.55, allocations: 12 kB / 0.5723 GB, free: 7.633 MB / 411.1 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.001393/0.5514, allocations: 0.7701 MB / 0.573 GB, free: 6.816 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.5515, allocations: 12.03 kB / 0.573 GB, free: 6.805 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.5516, allocations: 63.2 kB / 0.5731 GB, free: 6.742 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001611/0.5532, allocations: 0.7539 MB / 0.5738 GB, free: 5.941 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.5532, allocations: 16 kB / 0.5738 GB, free: 5.926 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-05/0.5533, allocations: 27.91 kB / 0.5739 GB, free: 5.898 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005476/0.5539, allocations: 286.5 kB / 0.5741 GB, free: 5.621 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007202/0.5546, allocations: 464.5 kB / 0.5746 GB, free: 5.125 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.5546, allocations: 4 kB / 0.5746 GB, free: 5.121 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.5547, allocations: 0 / 0.5746 GB, free: 5.121 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.5547, allocations: 15.95 kB / 0.5746 GB, free: 5.105 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002522/0.5572, allocations: 1.994 MB / 0.5765 GB, free: 3.004 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.5576, allocations: 207.8 kB / 0.5767 GB, free: 2.773 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.5577, allocations: 74.62 kB / 0.5768 GB, free: 2.691 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.5578, allocations: 8 kB / 0.5768 GB, free: 2.684 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.558, allocations: 151.9 kB / 0.577 GB, free: 2.516 MB / 411.1 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.5581, allocations: 0 / 0.577 GB, free: 2.516 MB / 411.1 MB Notification: Performance of matching and sorting (n=25): time 0.001616/0.5597, allocations: 0.8105 MB / 0.5778 GB, free: 1.645 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.5598, allocations: 132.5 kB / 0.5779 GB, free: 1.484 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004153/0.5602, allocations: 333.1 kB / 0.5782 GB, free: 1.148 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.5602, allocations: 25.7 kB / 0.5782 GB, free: 1.117 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.5605, allocations: 303.4 kB / 0.5785 GB, free: 0.8164 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.848e-05/0.5605, allocations: 82.81 kB / 0.5786 GB, free: 0.7344 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.5606, allocations: 0 / 0.5786 GB, free: 0.7344 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5607, allocations: 350.9 kB / 0.5789 GB, free: 392 kB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.5609, allocations: 76.86 kB / 0.579 GB, free: 316 kB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.5611, allocations: 208.8 kB / 0.5792 GB, free: 44 kB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.5613, allocations: 99.03 kB / 0.5793 GB, free: 15.95 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5613, allocations: 7.938 kB / 0.5793 GB, free: 15.94 MB / 427.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007704/0.5621, allocations: 395.9 kB / 0.5797 GB, free: 15.55 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.5621, allocations: 8 kB / 0.5797 GB, free: 15.54 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.5621, allocations: 4.562 kB / 0.5797 GB, free: 15.54 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004125/0.5626, allocations: 96.67 kB / 0.5798 GB, free: 15.44 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.5628, allocations: 75.84 kB / 0.5799 GB, free: 15.36 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.5647, allocations: 1.636 MB / 0.5815 GB, free: 13.61 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.565, allocations: 19.89 kB / 0.5815 GB, free: 13.59 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.565, allocations: 16.06 kB / 0.5815 GB, free: 13.58 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_par.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real 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.0001536/0.5652, allocations: 116.9 kB / 0.5816 GB, free: 13.46 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/0.5653, allocations: 39.53 kB / 0.5816 GB, free: 13.42 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005206/0.5658, allocations: 261.8 kB / 0.5819 GB, free: 13.16 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.5658, allocations: 4 kB / 0.5819 GB, free: 13.15 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5658, allocations: 8 kB / 0.5819 GB, free: 13.14 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.5658, allocations: 7.984 kB / 0.5819 GB, free: 13.14 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.5669, allocations: 0.6908 MB / 0.5826 GB, free: 12.4 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.5669, allocations: 3.938 kB / 0.5826 GB, free: 12.39 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002679/0.5672, allocations: 47.92 kB / 0.5826 GB, free: 12.35 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/0.5674, allocations: 40.81 kB / 0.5827 GB, free: 12.3 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.5675, allocations: 15.98 kB / 0.5827 GB, free: 12.29 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.5686, allocations: 1.377 MB / 0.584 GB, free: 10.79 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5687, allocations: 4.062 kB / 0.584 GB, free: 10.79 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006604/0.5693, allocations: 469.2 kB / 0.5845 GB, free: 10.29 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.5695, allocations: 132.7 kB / 0.5846 GB, free: 10.14 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.5695, allocations: 8 kB / 0.5846 GB, free: 10.13 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.5698, allocations: 11.98 kB / 0.5846 GB, free: 10.12 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.242e-05/0.5699, allocations: 19.97 kB / 0.5846 GB, free: 10.1 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.5699, allocations: 4 kB / 0.5847 GB, free: 10.1 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0002806/0.5702, allocations: 255 kB / 0.5849 GB, free: 9.852 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5702, allocations: 0 / 0.5849 GB, free: 9.852 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0005633/0.5707, allocations: 111.9 kB / 0.585 GB, free: 9.742 MB / 427.1 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.0008602/0.5716, allocations: 386.7 kB / 0.5854 GB, free: 9.383 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0007057/0.5723, allocations: 350.4 kB / 0.5857 GB, free: 9.031 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5724, allocations: 0 / 0.5857 GB, free: 9.031 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003501/0.5727, allocations: 221.8 kB / 0.5859 GB, free: 8.805 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006106/0.5733, allocations: 101.9 kB / 0.586 GB, free: 8.707 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.575, allocations: 0.8823 MB / 0.5869 GB, free: 7.789 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.5755, allocations: 0.897 MB / 0.5878 GB, free: 6.867 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.0002613/0.5758, allocations: 63.34 kB / 0.5878 GB, free: 6.805 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.52e-05/0.5758, allocations: 31.44 kB / 0.5878 GB, free: 6.773 MB / 427.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5759, allocations: 0 / 0.5878 GB, free: 6.773 MB / 427.1 MB Notification: Performance of Templates: time 0.011/0.5869, allocations: 5.335 MB / 0.5931 GB, free: 1.434 MB / 427.1 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