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.001363/0.001363, allocations: 177.1 kB / 8.35 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.483/1.483, 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.000825/0.0008249, allocations: 91.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1879/0.1879, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.495e-05/1.498e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08762/0.08765, allocations: 56.32 MB / 466.9 MB, free: 6.574 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3821/0.4698, allocations: 98.77 MB / 0.5524 GB, free: 12.16 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.4701, allocations: 87.95 kB / 0.5525 GB, free: 12.08 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04272/0.5129, allocations: 11.29 MB / 0.5635 GB, free: 0.668 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.5129, allocations: 0 / 0.5635 GB, free: 0.668 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.28e-05/0.513, allocations: 15.94 kB / 0.5635 GB, free: 0.6523 MB / 395.1 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.001257/0.5142, allocations: 0.6214 MB / 0.5641 GB, free: 15.98 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.5143, allocations: 8.031 kB / 0.5641 GB, free: 15.98 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.5144, allocations: 51.39 kB / 0.5642 GB, free: 15.93 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.5158, allocations: 0.5415 MB / 0.5647 GB, free: 15.35 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.516, allocations: 46.47 kB / 0.5648 GB, free: 15.3 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.639e-05/0.5161, allocations: 28 kB / 0.5648 GB, free: 15.27 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005758/0.5167, allocations: 221.4 kB / 0.565 GB, free: 15.05 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008095/0.5175, allocations: 373.5 kB / 0.5654 GB, free: 14.64 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.5175, allocations: 0 / 0.5654 GB, free: 14.64 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.233e-05/0.5176, allocations: 0 / 0.5654 GB, free: 14.64 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.509e-05/0.5176, allocations: 12 kB / 0.5654 GB, free: 14.63 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003011/0.5206, allocations: 1.795 MB / 0.5671 GB, free: 12.73 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003324/0.521, allocations: 160.3 kB / 0.5673 GB, free: 12.54 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.5212, allocations: 66.64 kB / 0.5673 GB, free: 12.47 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.5212, allocations: 7.984 kB / 0.5673 GB, free: 12.46 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.5213, allocations: 42.55 kB / 0.5674 GB, free: 12.41 MB / 411.1 MB Notification: Performance of pre-optimization done (n=18): time 2.255e-06/0.5213, allocations: 0 / 0.5674 GB, free: 12.41 MB / 411.1 MB Notification: Performance of matching and sorting (n=19): time 0.001412/0.5227, allocations: 0.6164 MB / 0.568 GB, free: 11.74 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.5228, allocations: 106.8 kB / 0.5681 GB, free: 11.61 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.5232, allocations: 233.1 kB / 0.5683 GB, free: 11.38 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.5232, allocations: 25.7 kB / 0.5683 GB, free: 11.34 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.5234, allocations: 251.7 kB / 0.5686 GB, free: 11.09 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.958e-05/0.5235, allocations: 59.11 kB / 0.5686 GB, free: 11.04 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.635e-05/0.5236, allocations: 0 / 0.5686 GB, free: 11.04 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.5238, allocations: 350.9 kB / 0.569 GB, free: 10.68 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.524, allocations: 56.66 kB / 0.569 GB, free: 10.62 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003014/0.5243, allocations: 189.4 kB / 0.5692 GB, free: 10.38 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.5245, allocations: 88.89 kB / 0.5693 GB, free: 10.29 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.5245, allocations: 0 / 0.5693 GB, free: 10.29 MB / 411.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006711/0.5252, allocations: 283.7 kB / 0.5696 GB, free: 10.01 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.5253, allocations: 7.938 kB / 0.5696 GB, free: 10 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.5253, allocations: 8 kB / 0.5696 GB, free: 9.996 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.908e-05/0.5253, allocations: 7.953 kB / 0.5696 GB, free: 9.988 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000494/0.5258, allocations: 72.44 kB / 0.5697 GB, free: 9.918 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/0.5259, allocations: 11.98 kB / 0.5697 GB, free: 9.906 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.5262, allocations: 15.91 kB / 0.5697 GB, free: 9.891 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.5262, allocations: 19.94 kB / 0.5697 GB, free: 9.871 MB / 411.1 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.0001321/0.5264, allocations: 112.9 kB / 0.5698 GB, free: 9.754 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.5265, allocations: 23.72 kB / 0.5698 GB, free: 9.73 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004402/0.527, allocations: 175.7 kB / 0.57 GB, free: 9.551 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.527, allocations: 3.938 kB / 0.57 GB, free: 9.547 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.527, allocations: 3.953 kB / 0.57 GB, free: 9.543 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.527, allocations: 8 kB / 0.57 GB, free: 9.535 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.5282, allocations: 0.5425 MB / 0.5705 GB, free: 8.945 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.5282, allocations: 4 kB / 0.5705 GB, free: 8.941 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.5286, allocations: 47.91 kB / 0.5706 GB, free: 8.895 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.5286, allocations: 0 / 0.5706 GB, free: 8.895 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.5286, allocations: 7.953 kB / 0.5706 GB, free: 8.887 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.5286, allocations: 4 kB / 0.5706 GB, free: 8.883 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.5287, allocations: 8.031 kB / 0.5706 GB, free: 8.875 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006959/0.5294, allocations: 453.1 kB / 0.571 GB, free: 8.391 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.5295, allocations: 104.7 kB / 0.5711 GB, free: 8.27 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.5296, allocations: 8.031 kB / 0.5711 GB, free: 8.262 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003163/0.5299, allocations: 4 kB / 0.5712 GB, free: 8.258 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.495e-05/0.53, allocations: 11.98 kB / 0.5712 GB, free: 8.246 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.312e-05/0.53, allocations: 4 kB / 0.5712 GB, free: 8.242 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002549/0.5303, allocations: 184.6 kB / 0.5713 GB, free: 8.062 MB / 411.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5303, allocations: 0 / 0.5713 GB, free: 8.062 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0007158/0.531, allocations: 64 kB / 0.5714 GB, free: 8 MB / 411.1 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.0002219/0.5313, allocations: 128.9 kB / 0.5715 GB, free: 7.867 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0004305/0.5317, allocations: 175.9 kB / 0.5717 GB, free: 7.695 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5317, allocations: 4 kB / 0.5717 GB, free: 7.691 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.5319, allocations: 63.84 kB / 0.5718 GB, free: 7.629 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.5327, allocations: 69.84 kB / 0.5718 GB, free: 7.562 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.5345, allocations: 0.6646 MB / 0.5725 GB, free: 6.863 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005631/0.5351, allocations: 0.8263 MB / 0.5733 GB, free: 6.012 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0003172/0.5354, allocations: 47.27 kB / 0.5733 GB, free: 5.969 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.911e-05/0.5355, allocations: 23.44 kB / 0.5734 GB, free: 5.945 MB / 411.1 MB Notification: Performance of SimCode: time 3.71e-07/0.5355, allocations: 0 / 0.5734 GB, free: 5.945 MB / 411.1 MB Notification: Performance of Templates: time 0.009514/0.5451, allocations: 2.72 MB / 0.576 GB, free: 3.238 MB / 411.1 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