Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001665/0.001665, 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.57/1.57, 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.0008572/0.0008574, allocations: 78.8 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.166/0.166, allocations: 37.97 MB / 353.5 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.273e-05/3.29e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 56.31 MB / 474.1 MB, free: 4.801 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.369/0.4823, allocations: 99.43 MB / 0.56 GB, free: 3.215 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.4826, allocations: 91.52 kB / 0.5601 GB, free: 3.172 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02842/0.5111, allocations: 11.41 MB / 0.5713 GB, free: 9.469 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.5111, allocations: 4 kB / 0.5713 GB, free: 9.465 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.131e-05/0.5111, allocations: 15.98 kB / 0.5713 GB, free: 9.449 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009487/0.5121, allocations: 0.6183 MB / 0.5719 GB, free: 8.812 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.5121, allocations: 8.031 kB / 0.5719 GB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.745e-05/0.5122, allocations: 51.39 kB / 0.572 GB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.5133, allocations: 0.5541 MB / 0.5725 GB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.5135, allocations: 65.28 kB / 0.5726 GB, free: 8.203 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.92e-05/0.5135, allocations: 36.88 kB / 0.5726 GB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006572/0.5142, allocations: 418.1 kB / 0.573 GB, free: 7.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.5142, allocations: 4 kB / 0.573 GB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.5143, allocations: 17.25 kB / 0.573 GB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.5143, allocations: 11.94 kB / 0.573 GB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003956/0.5147, allocations: 253.5 kB / 0.5733 GB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.5168, allocations: 1.869 MB / 0.5751 GB, free: 5.918 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.5171, allocations: 173.4 kB / 0.5753 GB, free: 5.766 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.5172, allocations: 68.91 kB / 0.5753 GB, free: 5.707 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.5172, allocations: 0 / 0.5753 GB, free: 5.707 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.5173, allocations: 46.31 kB / 0.5754 GB, free: 5.656 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.312e-06/0.5173, allocations: 0 / 0.5754 GB, free: 5.656 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.00116/0.5185, allocations: 0.6396 MB / 0.576 GB, free: 5.043 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.421e-05/0.5186, allocations: 106.8 kB / 0.5761 GB, free: 4.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.5189, allocations: 280.1 kB / 0.5764 GB, free: 4.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.5189, allocations: 33.33 kB / 0.5764 GB, free: 4.645 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001504/0.5191, allocations: 249.6 kB / 0.5766 GB, free: 4.441 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.856e-05/0.5191, allocations: 62.61 kB / 0.5767 GB, free: 4.387 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.5191, allocations: 7.75 kB / 0.5767 GB, free: 4.387 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.5193, allocations: 342.3 kB / 0.577 GB, free: 4.055 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.5194, allocations: 63.91 kB / 0.5771 GB, free: 4.012 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.5196, allocations: 196.3 kB / 0.5773 GB, free: 3.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.5198, allocations: 111.1 kB / 0.5774 GB, free: 3.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5198, allocations: 0 / 0.5774 GB, free: 3.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004847/0.5203, allocations: 316.9 kB / 0.5777 GB, free: 3.461 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.5204, allocations: 11.95 kB / 0.5777 GB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.5204, allocations: 4 kB / 0.5777 GB, free: 3.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.556e-05/0.5204, allocations: 8 kB / 0.5777 GB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003297/0.5208, allocations: 79.83 kB / 0.5778 GB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-05/0.5208, allocations: 11.94 kB / 0.5778 GB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.521, allocations: 16.12 kB / 0.5778 GB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.521, allocations: 19.86 kB / 0.5778 GB, free: 3.324 MB / 378.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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.5211, allocations: 120.4 kB / 0.5779 GB, free: 3.207 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.354e-05/0.5212, allocations: 35.56 kB / 0.578 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003435/0.5216, allocations: 190.3 kB / 0.5782 GB, free: 3.031 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.5216, allocations: 4 kB / 0.5782 GB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.5216, allocations: 0 / 0.5782 GB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.5216, allocations: 3.984 kB / 0.5782 GB, free: 3.023 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009096/0.5225, allocations: 0.6199 MB / 0.5788 GB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.5225, allocations: 0 / 0.5788 GB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002525/0.5228, allocations: 43.97 kB / 0.5788 GB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.5228, allocations: 0 / 0.5788 GB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.5228, allocations: 7.812 kB / 0.5788 GB, free: 2.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.5228, allocations: 3.938 kB / 0.5788 GB, free: 2.414 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5228, allocations: 0 / 0.5788 GB, free: 2.414 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005107/0.5234, allocations: 473.5 kB / 0.5793 GB, free: 1.977 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.184e-05/0.5235, allocations: 104.9 kB / 0.5794 GB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.5235, allocations: 11.3 kB / 0.5794 GB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.5237, allocations: 11.81 kB / 0.5794 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.494e-05/0.5238, allocations: 15.88 kB / 0.5794 GB, free: 1.824 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.5238, allocations: 15.06 kB / 0.5794 GB, free: 1.812 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002281/0.524, allocations: 213.8 kB / 0.5796 GB, free: 1.641 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.524, allocations: 0 / 0.5796 GB, free: 1.641 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004907/0.5245, allocations: 75.19 kB / 0.5797 GB, free: 1.574 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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.0001976/0.5248, allocations: 126.8 kB / 0.5798 GB, free: 1.445 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003211/0.5251, allocations: 190.9 kB / 0.58 GB, free: 1.305 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.5251, allocations: 0 / 0.58 GB, free: 1.305 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.5252, allocations: 77.77 kB / 0.5801 GB, free: 1.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/0.5257, allocations: 82.53 kB / 0.5802 GB, free: 1.191 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.5269, allocations: 0.676 MB / 0.5808 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/0.5273, allocations: 0.8241 MB / 0.5816 GB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001953/0.5275, allocations: 51.25 kB / 0.5817 GB, free: 15.65 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.974e-05/0.5276, allocations: 27.42 kB / 0.5817 GB, free: 15.62 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5276, allocations: 4 kB / 0.5817 GB, free: 15.62 MB / 394.7 MB Notification: Performance of Templates: time 0.007061/0.5346, allocations: 3.504 MB / 0.5851 GB, free: 12.13 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches