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.001362/0.001362, allocations: 112.2 kB / 21.22 MB, free: 0.7266 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.002009/0.002009, allocations: 208.2 kB / 24.52 MB, free: 4.066 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.555/1.555, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.2244/0.2244, allocations: 38.54 MB / 353.3 MB, free: 12.54 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.002153/0.002153, allocations: 68.19 kB / 493.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3505, allocations: 62.47 MB / 0.5428 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.008588/0.359, allocations: 5.691 MB / 0.5483 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004213/0.3633, allocations: 1.402 MB / 0.5497 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007107/0.364, allocations: 27.03 kB / 0.5497 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00063/0.3646, allocations: 143.8 kB / 0.5499 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001431/0.366, allocations: 392 kB / 0.5502 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006665/0.3667, allocations: 154.5 kB / 0.5504 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.3683, allocations: 0.7734 MB / 0.5511 GB, free: 9.859 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.3686, allocations: 145.9 kB / 0.5513 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007595/0.3694, allocations: 361.5 kB / 0.5516 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007546/0.3701, allocations: 424.9 kB / 0.552 GB, free: 9.328 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.285e-05/0.3702, allocations: 39.41 kB / 0.5521 GB, free: 9.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.3703, allocations: 43.34 kB / 0.5521 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.3706, allocations: 210.2 kB / 0.5523 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003376/0.371, allocations: 284.8 kB / 0.5526 GB, free: 9 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008493/0.3718, allocations: 0.5739 MB / 0.5531 GB, free: 8.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3718, allocations: 0 / 0.5531 GB, free: 8.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.3718, allocations: 1.125 kB / 0.5531 GB, free: 8.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.3718, allocations: 0 / 0.5531 GB, free: 8.613 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.001717/0.3736, allocations: 0.8404 MB / 0.554 GB, free: 7.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3736, allocations: 13.64 kB / 0.554 GB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.656e-05/0.3736, allocations: 10.97 kB / 0.554 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.538e-05/0.3737, allocations: 78.47 kB / 0.5541 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.3739, allocations: 62.34 kB / 0.5541 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008826/0.3747, allocations: 457.5 kB / 0.5546 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.3748, allocations: 33.64 kB / 0.5546 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.335e-05/0.3748, allocations: 39.38 kB / 0.5546 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008719/0.3757, allocations: 0.5343 MB / 0.5551 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.3757, allocations: 1.469 kB / 0.5551 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.3758, allocations: 19.97 kB / 0.5552 GB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.611e-05/0.3758, allocations: 21.83 kB / 0.5552 GB, free: 7.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006492/0.3765, allocations: 387.9 kB / 0.5556 GB, free: 6.891 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002852/0.3793, allocations: 1.89 MB / 0.5574 GB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006685/0.38, allocations: 308.2 kB / 0.5577 GB, free: 4.996 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003306/0.3803, allocations: 165.7 kB / 0.5579 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.813e-05/0.3804, allocations: 8.188 kB / 0.5579 GB, free: 4.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004366/0.3808, allocations: 276.8 kB / 0.5581 GB, free: 4.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.174e-06/0.3808, allocations: 0 / 0.5581 GB, free: 4.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.002214/0.383, allocations: 1.137 MB / 0.5592 GB, free: 3.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001384/0.3831, allocations: 166.2 kB / 0.5594 GB, free: 3.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005047/0.3837, allocations: 393.9 kB / 0.5598 GB, free: 2.734 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.3837, allocations: 33.69 kB / 0.5598 GB, free: 2.695 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.3839, allocations: 296.2 kB / 0.5601 GB, free: 2.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.384, allocations: 127 kB / 0.5602 GB, free: 2.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.3842, allocations: 98.12 kB / 0.5603 GB, free: 2.176 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3844, allocations: 366.8 kB / 0.5607 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.3846, allocations: 120.9 kB / 0.5608 GB, free: 1.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003436/0.3849, allocations: 281.5 kB / 0.561 GB, free: 1.344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.3855, allocations: 477.3 kB / 0.5615 GB, free: 0.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3855, allocations: 8 kB / 0.5615 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008262/0.3863, allocations: 0.5257 MB / 0.562 GB, free: 252 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.931e-05/0.3864, allocations: 37.69 kB / 0.562 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.3864, allocations: 11.88 kB / 0.5621 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.3864, allocations: 8 kB / 0.5621 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.3869, allocations: 103.8 kB / 0.5622 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.3869, allocations: 12.48 kB / 0.5622 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.3871, allocations: 24 kB / 0.5622 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.3872, allocations: 39.95 kB / 0.5622 GB, free: 8 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.000319/0.3875, allocations: 251.2 kB / 0.5625 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.619e-05/0.3876, allocations: 47.72 kB / 0.5625 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000734/0.3883, allocations: 451.4 kB / 0.563 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3883, allocations: 4 kB / 0.563 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3883, allocations: 0 / 0.563 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3883, allocations: 0 / 0.563 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.3898, allocations: 0.9502 MB / 0.5639 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3898, allocations: 0 / 0.5639 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000299/0.3901, allocations: 63.91 kB / 0.5639 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.3901, allocations: 4 kB / 0.564 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.3902, allocations: 8 kB / 0.564 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.3902, allocations: 12 kB / 0.564 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3902, allocations: 3.984 kB / 0.564 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009854/0.3911, allocations: 0.7115 MB / 0.5647 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.3913, allocations: 59.72 kB / 0.5647 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.169e-05/0.3914, allocations: 12 kB / 0.5647 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.3916, allocations: 16.05 kB / 0.5648 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.431e-05/0.3917, allocations: 31.89 kB / 0.5648 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.555e-05/0.3917, allocations: 31.91 kB / 0.5648 GB, free: 13.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002884/0.392, allocations: 271.1 kB / 0.5651 GB, free: 12.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.392, allocations: 0 / 0.5651 GB, free: 12.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004659/0.3925, allocations: 100 kB / 0.5652 GB, free: 12.88 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.001458/0.3939, allocations: 1.271 MB / 0.5664 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006592/0.3946, allocations: 391.9 kB / 0.5668 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3946, allocations: 0 / 0.5668 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003098/0.3949, allocations: 227.2 kB / 0.567 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006567/0.3955, allocations: 102.5 kB / 0.5671 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005447/0.401, allocations: 4.139 MB / 0.5711 GB, free: 6.449 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.4016, allocations: 0.8859 MB / 0.572 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002962/0.4019, allocations: 84.31 kB / 0.5721 GB, free: 5.449 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000249/0.4022, allocations: 175.4 kB / 0.5723 GB, free: 5.277 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4022, allocations: 0 / 0.5723 GB, free: 5.277 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0358/0.438, allocations: 9.194 MB / 0.5812 GB, free: 12.26 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.72, allocations: 19.05 kB / 0.5812 GB, free: 12.24 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.18700274103321]