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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 218.7 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.537/1.537, allocations: 230.6 MB / 258.3 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2079/0.2079, allocations: 38.57 MB / 353.3 MB, free: 12.34 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002966/0.002966, allocations: 55.91 kB / 493.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3513, allocations: 62.47 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.008191/0.3595, allocations: 5.305 MB / 0.5479 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00325/0.3627, allocations: 1.31 MB / 0.5492 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007214/0.3635, allocations: 35.72 kB / 0.5492 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007472/0.3642, allocations: 122.3 kB / 0.5493 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001463/0.3657, allocations: 392 kB / 0.5497 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.3662, allocations: 155.2 kB / 0.5498 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001393/0.3676, allocations: 0.7732 MB / 0.5506 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003825/0.368, allocations: 146 kB / 0.5507 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000857/0.3688, allocations: 364.5 kB / 0.5511 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008179/0.3696, allocations: 424.6 kB / 0.5515 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.3698, allocations: 43.41 kB / 0.5515 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.37, allocations: 40.78 kB / 0.5516 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003016/0.3703, allocations: 214.2 kB / 0.5518 GB, free: 9.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00046/0.3707, allocations: 227.6 kB / 0.552 GB, free: 9.367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009506/0.3717, allocations: 0.5806 MB / 0.5526 GB, free: 8.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3717, allocations: 0 / 0.5526 GB, free: 8.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3717, allocations: 0 / 0.5526 GB, free: 8.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.983e-05/0.3717, allocations: 5 kB / 0.5526 GB, free: 8.977 MB / 398.1 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.0019/0.3736, allocations: 0.8334 MB / 0.5534 GB, free: 8.312 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3736, allocations: 12.61 kB / 0.5534 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.708e-05/0.3737, allocations: 12.12 kB / 0.5534 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001194/0.3738, allocations: 86.44 kB / 0.5535 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.3739, allocations: 61.94 kB / 0.5535 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.3749, allocations: 462 kB / 0.554 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.375, allocations: 30.16 kB / 0.554 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.128e-05/0.3751, allocations: 38.28 kB / 0.5541 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009571/0.376, allocations: 0.5605 MB / 0.5546 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.376, allocations: 3.938 kB / 0.5546 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-05/0.3761, allocations: 21.42 kB / 0.5546 GB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-05/0.3761, allocations: 17.66 kB / 0.5546 GB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007093/0.3768, allocations: 428.3 kB / 0.555 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002652/0.3795, allocations: 1.748 MB / 0.5568 GB, free: 5.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006128/0.3801, allocations: 339 kB / 0.5571 GB, free: 5.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000354/0.3805, allocations: 191.4 kB / 0.5573 GB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.3805, allocations: 8.188 kB / 0.5573 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004248/0.3809, allocations: 314.6 kB / 0.5576 GB, free: 4.773 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.194e-06/0.3809, allocations: 0 / 0.5576 GB, free: 4.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002293/0.3832, allocations: 1.202 MB / 0.5587 GB, free: 3.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.3833, allocations: 162.2 kB / 0.5589 GB, free: 3.309 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005353/0.3839, allocations: 397.8 kB / 0.5593 GB, free: 2.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.3839, allocations: 37.64 kB / 0.5593 GB, free: 2.867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002712/0.3842, allocations: 292.3 kB / 0.5596 GB, free: 2.578 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.3843, allocations: 126.9 kB / 0.5597 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.3845, allocations: 94.14 kB / 0.5598 GB, free: 2.355 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.3846, allocations: 354.8 kB / 0.5601 GB, free: 2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.3849, allocations: 150.6 kB / 0.5603 GB, free: 1.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003839/0.3853, allocations: 327.3 kB / 0.5606 GB, free: 1.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006298/0.3859, allocations: 477.3 kB / 0.5611 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.3859, allocations: 0 / 0.5611 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008848/0.3868, allocations: 0.5551 MB / 0.5616 GB, free: 332 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.215e-05/0.3868, allocations: 37.8 kB / 0.5616 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3868, allocations: 7.938 kB / 0.5616 GB, free: 280 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.3869, allocations: 8 kB / 0.5616 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.3873, allocations: 111.8 kB / 0.5618 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.3873, allocations: 11.94 kB / 0.5618 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.3877, allocations: 23.98 kB / 0.5618 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.349e-05/0.3877, allocations: 35.95 kB / 0.5618 GB, free: 88 kB / 398.1 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,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003583/0.3881, allocations: 247.3 kB / 0.5621 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.63e-05/0.3882, allocations: 55.7 kB / 0.5621 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008468/0.389, allocations: 481.1 kB / 0.5626 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.389, allocations: 7.938 kB / 0.5626 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.389, allocations: 0 / 0.5626 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.389, allocations: 7.922 kB / 0.5626 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001681/0.3907, allocations: 0.9481 MB / 0.5635 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.3907, allocations: 3.984 kB / 0.5635 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/0.391, allocations: 59.91 kB / 0.5636 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.391, allocations: 4.062 kB / 0.5636 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/0.3911, allocations: 16 kB / 0.5636 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.3911, allocations: 0 / 0.5636 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.3911, allocations: 0 / 0.5636 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.3922, allocations: 0.7773 MB / 0.5643 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.3924, allocations: 63.78 kB / 0.5644 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.184e-05/0.3925, allocations: 16 kB / 0.5644 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.3928, allocations: 11.98 kB / 0.5644 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.3928, allocations: 31.89 kB / 0.5645 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.856e-05/0.3929, allocations: 28.03 kB / 0.5645 GB, free: 13.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003439/0.3932, allocations: 275.1 kB / 0.5648 GB, free: 12.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3932, allocations: 0 / 0.5648 GB, free: 12.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005393/0.3938, allocations: 96 kB / 0.5648 GB, free: 12.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001609/0.3954, allocations: 1.34 MB / 0.5662 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007268/0.3961, allocations: 451.9 kB / 0.5666 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3961, allocations: 3.938 kB / 0.5666 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.3965, allocations: 256.9 kB / 0.5668 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007356/0.3972, allocations: 109.9 kB / 0.5669 GB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006332/0.4035, allocations: 4.28 MB / 0.5711 GB, free: 6.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.4039, allocations: 288.1 kB / 0.5714 GB, free: 5.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002988/0.4042, allocations: 84.31 kB / 0.5715 GB, free: 5.648 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002602/0.4044, allocations: 175.4 kB / 0.5716 GB, free: 5.477 MB / 414.1 MB Notification: Performance of SimCode: time 1.653e-06/0.4044, allocations: 0 / 0.5716 GB, free: 5.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0368/0.4412, allocations: 9.354 MB / 0.5808 GB, free: 12.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/12.88, allocations: 7.578 kB / 0.5808 GB, free: 12.34 MB / 430.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.37058570305817]