Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="Time|meter1.i|meter1.p|meter1.v|meter2.i|meter2.p|meter2.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 184.2 kB / 8.136 MB, free: 2.207 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.252/1.252, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.001006/0.001006, allocations: 98.72 kB / 261.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1684/0.1684, allocations: 37.97 MB / 347.7 MB, free: 7.531 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.135e-06/8.346e-06, allocations: 0 / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.08976, allocations: 56.32 MB / 466.3 MB, free: 6.473 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2845/0.3743, allocations: 99.26 MB / 0.5523 GB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/0.3746, allocations: 87.95 kB / 0.5524 GB, free: 11.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03327/0.4078, allocations: 11.11 MB / 0.5633 GB, free: 15.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.965e-05/0.4079, allocations: 16 kB / 0.5633 GB, free: 15.94 MB / 410.7 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.001344/0.4093, allocations: 0.7515 MB / 0.564 GB, free: 15.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.4093, allocations: 8.781 kB / 0.564 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.4095, allocations: 63.25 kB / 0.5641 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003295/0.4128, allocations: 1.233 MB / 0.5653 GB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.4129, allocations: 20 kB / 0.5653 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.759e-05/0.4129, allocations: 24 kB / 0.5653 GB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006156/0.4136, allocations: 361.8 kB / 0.5657 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006877/0.4143, allocations: 481.7 kB / 0.5661 GB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.4143, allocations: 7.875 kB / 0.5661 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.4143, allocations: 4 kB / 0.5662 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.629e-05/0.4144, allocations: 20.77 kB / 0.5662 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.4169, allocations: 1.86 MB / 0.568 GB, free: 10.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005582/0.4174, allocations: 297.3 kB / 0.5683 GB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.4178, allocations: 174 kB / 0.5684 GB, free: 10.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/0.4178, allocations: 11.94 kB / 0.5685 GB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003176/0.4181, allocations: 256.1 kB / 0.5687 GB, free: 10.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.565e-06/0.4182, allocations: 0 / 0.5687 GB, free: 10.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.001533/0.4197, allocations: 0.8693 MB / 0.5695 GB, free: 9.203 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.266e-05/0.4198, allocations: 162.2 kB / 0.5697 GB, free: 9.008 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003564/0.4202, allocations: 325 kB / 0.57 GB, free: 8.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.4202, allocations: 25.7 kB / 0.57 GB, free: 8.648 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.4204, allocations: 239.6 kB / 0.5703 GB, free: 8.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.4205, allocations: 118.3 kB / 0.5704 GB, free: 8.293 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.708e-05/0.4205, allocations: 0 / 0.5704 GB, free: 8.293 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.4207, allocations: 358.8 kB / 0.5707 GB, free: 7.934 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.4209, allocations: 109 kB / 0.5708 GB, free: 7.828 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.4212, allocations: 272.5 kB / 0.5711 GB, free: 7.492 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.4214, allocations: 156.9 kB / 0.5712 GB, free: 7.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4214, allocations: 4 kB / 0.5712 GB, free: 7.336 MB / 410.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006339/0.4221, allocations: 425.1 kB / 0.5716 GB, free: 6.914 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.4221, allocations: 4.625 kB / 0.5716 GB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.4221, allocations: 8 kB / 0.5717 GB, free: 6.902 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.4222, allocations: 8 kB / 0.5717 GB, free: 6.895 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004337/0.4226, allocations: 103.8 kB / 0.5718 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.4226, allocations: 8 kB / 0.5718 GB, free: 6.785 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.4229, allocations: 19.89 kB / 0.5718 GB, free: 6.766 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-05/0.423, allocations: 36.02 kB / 0.5718 GB, free: 6.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0001422/0.4231, allocations: 158.5 kB / 0.572 GB, free: 6.562 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.4232, allocations: 51.5 kB / 0.572 GB, free: 6.512 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005635/0.4238, allocations: 357.5 kB / 0.5724 GB, free: 6.156 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4238, allocations: 4 kB / 0.5724 GB, free: 6.152 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4238, allocations: 0 / 0.5724 GB, free: 6.152 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.4238, allocations: 7.906 kB / 0.5724 GB, free: 6.145 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.4249, allocations: 0.7998 MB / 0.5732 GB, free: 5.297 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.425, allocations: 4 kB / 0.5732 GB, free: 5.293 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003394/0.4253, allocations: 59.95 kB / 0.5732 GB, free: 5.234 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.4253, allocations: 0 / 0.5732 GB, free: 5.234 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.773e-05/0.4253, allocations: 7.906 kB / 0.5732 GB, free: 5.227 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.4254, allocations: 11.88 kB / 0.5732 GB, free: 5.215 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4254, allocations: 0 / 0.5732 GB, free: 5.215 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008104/0.4262, allocations: 0.6373 MB / 0.5739 GB, free: 4.543 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001799/0.4264, allocations: 144.4 kB / 0.574 GB, free: 4.383 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.672e-05/0.4265, allocations: 8 kB / 0.574 GB, free: 4.375 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.4267, allocations: 16.05 kB / 0.574 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.966e-05/0.4268, allocations: 19.97 kB / 0.574 GB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.173e-05/0.4268, allocations: 31.91 kB / 0.5741 GB, free: 4.309 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002344/0.4271, allocations: 247.2 kB / 0.5743 GB, free: 4.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004663/0.4276, allocations: 99.98 kB / 0.5744 GB, free: 3.973 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.0002509/0.4278, allocations: 145.6 kB / 0.5745 GB, free: 3.824 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005256/0.4283, allocations: 337.4 kB / 0.5749 GB, free: 3.488 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4284, allocations: 9.25 kB / 0.5749 GB, free: 3.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.4286, allocations: 225.6 kB / 0.5751 GB, free: 3.254 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.4291, allocations: 81.69 kB / 0.5752 GB, free: 3.176 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.4305, allocations: 0.7076 MB / 0.5758 GB, free: 2.426 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006097/0.4311, allocations: 0.9283 MB / 0.5768 GB, free: 1.469 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4311, allocations: 0 / 0.5768 GB, free: 1.469 MB / 410.7 MB Notification: Performance of Templates: time 0.009645/0.4408, allocations: 4.376 MB / 0.581 GB, free: 13.1 MB / 426.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches