Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001545/0.001545, 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.467/1.467, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009316/0.0009314, allocations: 90.66 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.161/0.161, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.836e-05/3.839e-05, allocations: 4 kB / 417.7 MB, free: 29.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 56.32 MB / 474.1 MB, free: 4.805 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3656/0.4772, allocations: 97.61 MB / 0.5583 GB, free: 5.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.4775, allocations: 94.75 kB / 0.5584 GB, free: 5.027 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02473/0.5023, allocations: 9.945 MB / 0.5681 GB, free: 12.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.5023, allocations: 0 / 0.5681 GB, free: 12.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.549e-05/0.5024, allocations: 15.98 kB / 0.5681 GB, free: 12.53 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0007778/0.5031, allocations: 0.5753 MB / 0.5686 GB, free: 11.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.5032, allocations: 8.031 kB / 0.5686 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.927e-05/0.5033, allocations: 50.8 kB / 0.5687 GB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.5046, allocations: 0.6047 MB / 0.5693 GB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.5046, allocations: 20.31 kB / 0.5693 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.417e-05/0.5047, allocations: 27.41 kB / 0.5693 GB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004566/0.5051, allocations: 331.1 kB / 0.5696 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.5051, allocations: 3.984 kB / 0.5697 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.5052, allocations: 15.69 kB / 0.5697 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.5052, allocations: 8 kB / 0.5697 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.5055, allocations: 198.5 kB / 0.5699 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.5071, allocations: 1.487 MB / 0.5713 GB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/0.5075, allocations: 195.2 kB / 0.5715 GB, free: 9.246 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.5076, allocations: 71.56 kB / 0.5716 GB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.5077, allocations: 7.938 kB / 0.5716 GB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.5077, allocations: 46.11 kB / 0.5716 GB, free: 9.125 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 3.357e-06/0.5077, allocations: 0 / 0.5716 GB, free: 9.125 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.001152/0.5089, allocations: 0.6406 MB / 0.5722 GB, free: 8.492 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.307e-05/0.509, allocations: 132.5 kB / 0.5724 GB, free: 8.332 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.5093, allocations: 271.2 kB / 0.5726 GB, free: 8.105 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.5094, allocations: 29.7 kB / 0.5727 GB, free: 8.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.5096, allocations: 214.7 kB / 0.5729 GB, free: 7.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.708e-05/0.5097, allocations: 65.97 kB / 0.5729 GB, free: 7.855 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.5097, allocations: 3.875 kB / 0.5729 GB, free: 7.855 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.5098, allocations: 344.4 kB / 0.5733 GB, free: 7.523 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.963e-05/0.51, allocations: 48.8 kB / 0.5733 GB, free: 7.492 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.5101, allocations: 153.7 kB / 0.5735 GB, free: 7.316 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.5103, allocations: 71.98 kB / 0.5735 GB, free: 7.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5103, allocations: 4 kB / 0.5735 GB, free: 7.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000384/0.5107, allocations: 243.6 kB / 0.5738 GB, free: 7.062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.5107, allocations: 8 kB / 0.5738 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.5108, allocations: 7.922 kB / 0.5738 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/0.5108, allocations: 8.438 kB / 0.5738 GB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003682/0.5112, allocations: 87.67 kB / 0.5739 GB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009142/0.5121, allocations: 1.284 MB / 0.5751 GB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.5122, allocations: 19.7 kB / 0.5751 GB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.5123, allocations: 15.19 kB / 0.5752 GB, free: 5.535 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.368e-05/0.5124, allocations: 116.5 kB / 0.5753 GB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.341e-05/0.5125, allocations: 31.62 kB / 0.5753 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003131/0.5128, allocations: 177.9 kB / 0.5755 GB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.5128, allocations: 12.08 kB / 0.5755 GB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.5128, allocations: 0 / 0.5755 GB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.5128, allocations: 4 kB / 0.5755 GB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007681/0.5136, allocations: 0.5305 MB / 0.576 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.5136, allocations: 0 / 0.576 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/0.5138, allocations: 43.91 kB / 0.576 GB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.5138, allocations: 7.953 kB / 0.576 GB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.5139, allocations: 7.5 kB / 0.5761 GB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.5139, allocations: 4 kB / 0.5761 GB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.5139, allocations: 0 / 0.5761 GB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004379/0.5143, allocations: 0.5263 MB / 0.5766 GB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.036e-05/0.5144, allocations: 100.7 kB / 0.5767 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.593e-05/0.5145, allocations: 7.5 kB / 0.5767 GB, free: 4.059 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.5146, allocations: 4.031 kB / 0.5767 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.209e-05/0.5147, allocations: 15.36 kB / 0.5767 GB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.5147, allocations: 4 kB / 0.5767 GB, free: 4.039 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001926/0.5149, allocations: 216.4 kB / 0.5769 GB, free: 3.867 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5149, allocations: 0 / 0.5769 GB, free: 3.867 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004296/0.5153, allocations: 63.25 kB / 0.577 GB, free: 3.812 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002043/0.5156, allocations: 151 kB / 0.5771 GB, free: 3.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003204/0.5159, allocations: 150.9 kB / 0.5773 GB, free: 3.547 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5159, allocations: 352 / 0.5773 GB, free: 3.547 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.516, allocations: 71.14 kB / 0.5773 GB, free: 3.496 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005411/0.5166, allocations: 82.73 kB / 0.5774 GB, free: 3.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.5177, allocations: 0.5855 MB / 0.578 GB, free: 2.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.518, allocations: 0.8178 MB / 0.5788 GB, free: 2.035 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001912/0.5182, allocations: 50.94 kB / 0.5788 GB, free: 1.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.36e-05/0.5183, allocations: 31.42 kB / 0.5788 GB, free: 1.953 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5183, allocations: 0 / 0.5788 GB, free: 1.953 MB / 378.7 MB Notification: Performance of Templates: time 0.006916/0.5252, allocations: 3.576 MB / 0.5823 GB, free: 14.39 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches