Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source") [: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.001129/0.001129, allocations: 181.9 kB / 8.134 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.233/1.233, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0009215/0.0009215, allocations: 83.34 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1665/0.1665, allocations: 37.97 MB / 347.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.664e-06/7.684e-06, allocations: 4 kB / 410 MB, free: 46.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08926/0.08928, allocations: 56.31 MB / 466.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2765/0.3658, allocations: 93.43 MB / 0.5466 GB, free: 1.148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.3661, allocations: 94.23 kB / 0.5467 GB, free: 1.059 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.01658/0.3827, allocations: 5.778 MB / 0.5524 GB, free: 11.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.3827, allocations: 4 kB / 0.5524 GB, free: 11.22 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006219/0.3834, allocations: 0.5038 MB / 0.5529 GB, free: 10.68 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.3834, allocations: 12.03 kB / 0.5529 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.585e-05/0.3835, allocations: 27.62 kB / 0.5529 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001816/0.3853, allocations: 0.7557 MB / 0.5536 GB, free: 9.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.3853, allocations: 12 kB / 0.5537 GB, free: 9.828 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.5e-05/0.3854, allocations: 12 kB / 0.5537 GB, free: 9.816 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002511/0.3856, allocations: 152.8 kB / 0.5538 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003031/0.386, allocations: 229.3 kB / 0.554 GB, free: 9.414 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.386, allocations: 3.938 kB / 0.554 GB, free: 9.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.386, allocations: 8 kB / 0.554 GB, free: 9.402 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.386, allocations: 4 kB / 0.554 GB, free: 9.398 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.3871, allocations: 1.115 MB / 0.5551 GB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.3872, allocations: 73.11 kB / 0.5552 GB, free: 8.117 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.972e-05/0.3873, allocations: 25.91 kB / 0.5552 GB, free: 8.086 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.3873, allocations: 4 kB / 0.5552 GB, free: 8.082 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.3873, allocations: 34.56 kB / 0.5553 GB, free: 8.039 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 4.198e-06/0.3874, allocations: 0 / 0.5553 GB, free: 8.039 MB / 394.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005597/0.3879, allocations: 376.7 kB / 0.5556 GB, free: 7.617 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.388, allocations: 85.05 kB / 0.5557 GB, free: 7.516 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.3882, allocations: 200.1 kB / 0.5559 GB, free: 7.312 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.3882, allocations: 29.73 kB / 0.5559 GB, free: 7.277 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.134e-05/0.3883, allocations: 167.5 kB / 0.5561 GB, free: 7.105 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.142e-05/0.3883, allocations: 27.56 kB / 0.5561 GB, free: 7.078 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-06/0.3883, allocations: 0 / 0.5561 GB, free: 7.078 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3884, allocations: 334.8 kB / 0.5564 GB, free: 6.742 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.011e-05/0.3885, allocations: 20.38 kB / 0.5565 GB, free: 6.723 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.627e-05/0.3886, allocations: 115.9 kB / 0.5566 GB, free: 6.566 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.676e-05/0.3886, allocations: 43.92 kB / 0.5566 GB, free: 6.523 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.3887, allocations: 0 / 0.5566 GB, free: 6.523 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002221/0.3889, allocations: 161.2 kB / 0.5568 GB, free: 6.359 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.3889, allocations: 5.406 kB / 0.5568 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.3889, allocations: 4 kB / 0.5568 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.3889, allocations: 4 kB / 0.5568 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.3891, allocations: 43.92 kB / 0.5568 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.3891, allocations: 4 kB / 0.5568 GB, free: 6.301 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.3892, allocations: 4 kB / 0.5568 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.3892, allocations: 8.375 kB / 0.5568 GB, free: 6.289 MB / 394.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 (22): * Single equations (assignments): 22 * 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 9.749e-05/0.3894, allocations: 124.7 kB / 0.5569 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.953e-05/0.3894, allocations: 15.81 kB / 0.557 GB, free: 6.145 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.3896, allocations: 91.31 kB / 0.557 GB, free: 6.051 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3896, allocations: 0 / 0.557 GB, free: 6.051 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3896, allocations: 7.906 kB / 0.5571 GB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3896, allocations: 3.938 kB / 0.5571 GB, free: 6.039 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003936/0.39, allocations: 368 kB / 0.5574 GB, free: 5.629 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.39, allocations: 7.938 kB / 0.5574 GB, free: 5.621 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.3901, allocations: 19.98 kB / 0.5574 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.3901, allocations: 3.906 kB / 0.5574 GB, free: 5.598 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.3901, allocations: 4 kB / 0.5574 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3901, allocations: 0 / 0.5574 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3902, allocations: 0 / 0.5574 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002234/0.3904, allocations: 240.4 kB / 0.5577 GB, free: 5.324 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.3904, allocations: 97.08 kB / 0.5578 GB, free: 5.211 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.3905, allocations: 4 kB / 0.5578 GB, free: 5.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.089e-05/0.3906, allocations: 7.938 kB / 0.5578 GB, free: 5.199 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.249e-05/0.3906, allocations: 7.984 kB / 0.5578 GB, free: 5.191 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.3906, allocations: 0 / 0.5578 GB, free: 5.191 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001162/0.3907, allocations: 156.6 kB / 0.5579 GB, free: 5.035 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002955/0.391, allocations: 36 kB / 0.558 GB, free: 5 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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.0001193/0.3912, allocations: 104.9 kB / 0.5581 GB, free: 4.891 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001382/0.3913, allocations: 75.86 kB / 0.5581 GB, free: 4.816 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3913, allocations: 0 / 0.5581 GB, free: 4.816 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.265e-05/0.3914, allocations: 24.81 kB / 0.5582 GB, free: 4.793 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.3917, allocations: 52.5 kB / 0.5582 GB, free: 4.742 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006505/0.3924, allocations: 314.2 kB / 0.5585 GB, free: 4.398 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.3928, allocations: 0.7862 MB / 0.5593 GB, free: 3.586 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3928, allocations: 0 / 0.5593 GB, free: 3.586 MB / 394.7 MB Notification: Performance of Templates: time 0.004449/0.3972, allocations: 1.64 MB / 0.5609 GB, free: 1.953 MB / 394.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches