Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001937/0.001937, 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.686/1.686, 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.0009186/0.0009185, allocations: 89.52 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.1714/0.1714, allocations: 38 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.546e-05/1.555e-05, allocations: 4 kB / 410.6 MB, free: 46.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 56.33 MB / 466.9 MB, free: 6.555 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.387/0.4923, allocations: 93.65 MB / 0.5474 GB, free: 1.266 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.4926, allocations: 83.95 kB / 0.5475 GB, free: 1.184 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02554/0.5182, allocations: 9.734 MB / 0.557 GB, free: 7.352 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5182, allocations: 0 / 0.557 GB, free: 7.352 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.5183, allocations: 4 kB / 0.557 GB, free: 7.348 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007214/0.519, allocations: 472.3 kB / 0.5575 GB, free: 6.836 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.5191, allocations: 8.031 kB / 0.5575 GB, free: 6.828 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007144/0.5198, allocations: 99.56 kB / 0.5576 GB, free: 6.73 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.5202, allocations: 266.9 kB / 0.5578 GB, free: 6.43 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.5202, allocations: 4 kB / 0.5578 GB, free: 6.426 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.5203, allocations: 15.98 kB / 0.5578 GB, free: 6.41 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002686/0.5205, allocations: 136.2 kB / 0.558 GB, free: 6.277 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003549/0.5209, allocations: 227.7 kB / 0.5582 GB, free: 6.031 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.5209, allocations: 3.906 kB / 0.5582 GB, free: 6.027 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.5209, allocations: 4 kB / 0.5582 GB, free: 6.023 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/0.521, allocations: 12.27 kB / 0.5582 GB, free: 6.012 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.5226, allocations: 1.219 MB / 0.5594 GB, free: 4.703 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/0.5231, allocations: 137.4 kB / 0.5595 GB, free: 4.551 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.961e-05/0.5232, allocations: 53.7 kB / 0.5596 GB, free: 4.492 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.5232, allocations: 4 kB / 0.5596 GB, free: 4.488 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.5232, allocations: 38.52 kB / 0.5596 GB, free: 4.441 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.5232, allocations: 0 / 0.5596 GB, free: 4.441 MB / 395.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003122/0.5236, allocations: 125.7 kB / 0.5597 GB, free: 4.312 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.5236, allocations: 81.05 kB / 0.5598 GB, free: 4.215 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001549/0.5238, allocations: 154.6 kB / 0.56 GB, free: 4.055 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.5238, allocations: 25.7 kB / 0.56 GB, free: 4.023 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.5239, allocations: 156 kB / 0.5601 GB, free: 3.867 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.957e-05/0.524, allocations: 47.3 kB / 0.5602 GB, free: 3.82 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-06/0.524, allocations: 0 / 0.5602 GB, free: 3.82 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.5241, allocations: 322.8 kB / 0.5605 GB, free: 3.496 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.922e-05/0.5242, allocations: 39.98 kB / 0.5605 GB, free: 3.457 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.5244, allocations: 115.1 kB / 0.5606 GB, free: 3.309 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.5245, allocations: 61.91 kB / 0.5607 GB, free: 3.25 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.5245, allocations: 4 kB / 0.5607 GB, free: 3.246 MB / 395.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003184/0.5248, allocations: 177.3 kB / 0.5609 GB, free: 3.066 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.5249, allocations: 4 kB / 0.5609 GB, free: 3.062 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.5249, allocations: 4 kB / 0.5609 GB, free: 3.059 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.5249, allocations: 8.297 kB / 0.5609 GB, free: 3.051 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.5251, allocations: 55.91 kB / 0.5609 GB, free: 2.996 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.5251, allocations: 4 kB / 0.5609 GB, free: 2.992 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.5253, allocations: 15.75 kB / 0.5609 GB, free: 2.977 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.5253, allocations: 12 kB / 0.561 GB, free: 2.965 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (24): * Single equations (assignments): 24 * 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.0001188/0.5254, allocations: 108.9 kB / 0.5611 GB, free: 2.852 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.275e-05/0.5255, allocations: 15.89 kB / 0.5611 GB, free: 2.836 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000323/0.5258, allocations: 139.4 kB / 0.5612 GB, free: 2.699 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.5258, allocations: 8 kB / 0.5612 GB, free: 2.691 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.5259, allocations: 3.953 kB / 0.5612 GB, free: 2.688 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.5259, allocations: 3.938 kB / 0.5612 GB, free: 2.684 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000698/0.5266, allocations: 465.4 kB / 0.5617 GB, free: 2.176 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.5266, allocations: 4 kB / 0.5617 GB, free: 2.172 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.5268, allocations: 35.92 kB / 0.5617 GB, free: 2.137 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.5268, allocations: 15.98 kB / 0.5617 GB, free: 2.121 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.5268, allocations: 0 / 0.5617 GB, free: 2.121 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.5268, allocations: 4 kB / 0.5617 GB, free: 2.117 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.5269, allocations: 0 / 0.5617 GB, free: 2.117 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004792/0.5274, allocations: 357.5 kB / 0.5621 GB, free: 1.715 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.365e-05/0.5274, allocations: 88.92 kB / 0.5622 GB, free: 1.609 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.5275, allocations: 4 kB / 0.5622 GB, free: 1.605 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.267e-05/0.5276, allocations: 4 kB / 0.5622 GB, free: 1.602 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.5276, allocations: 15.88 kB / 0.5622 GB, free: 1.586 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.283e-05/0.5277, allocations: 12 kB / 0.5622 GB, free: 1.574 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.5278, allocations: 128.1 kB / 0.5623 GB, free: 1.449 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5278, allocations: 0 / 0.5623 GB, free: 1.449 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003855/0.5282, allocations: 51.84 kB / 0.5624 GB, free: 1.398 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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.00019/0.5284, allocations: 101.1 kB / 0.5625 GB, free: 1.289 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002447/0.5286, allocations: 114.2 kB / 0.5626 GB, free: 1.184 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5286, allocations: 0.6875 kB / 0.5626 GB, free: 1.184 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 9.093e-05/0.5287, allocations: 59.86 kB / 0.5626 GB, free: 1.125 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.5291, allocations: 23.92 kB / 0.5626 GB, free: 1.102 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006984/0.5298, allocations: 385.1 kB / 0.563 GB, free: 0.6914 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.5301, allocations: 0.744 MB / 0.5637 GB, free: 15.92 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.000106/0.5303, allocations: 33.83 kB / 0.5638 GB, free: 15.89 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.942e-05/0.5303, allocations: 19.44 kB / 0.5638 GB, free: 15.87 MB / 411.1 MB Notification: Performance of SimCode: time 2.3e-07/0.5303, allocations: 0 / 0.5638 GB, free: 15.87 MB / 411.1 MB Notification: Performance of Templates: time 0.003959/0.5343, allocations: 1.172 MB / 0.5649 GB, free: 14.7 MB / 411.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches