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.001857/0.001857, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002399/0.002399, allocations: 216.3 kB / 23.75 MB, free: 4.668 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.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.1821/0.1821, allocations: 38.53 MB / 352.5 MB, free: 12.53 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",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.002053/0.002053, allocations: 71.83 kB / 492.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2997, allocations: 62.46 MB / 0.542 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.007128/0.3068, allocations: 5.695 MB / 0.5476 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.3092, allocations: 1.406 MB / 0.5489 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.3094, allocations: 27.19 kB / 0.549 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004458/0.3099, allocations: 139 kB / 0.5491 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008063/0.3107, allocations: 392.8 kB / 0.5495 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.311, allocations: 153.5 kB / 0.5496 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008593/0.3119, allocations: 0.7778 MB / 0.5504 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002541/0.3121, allocations: 141.5 kB / 0.5505 GB, free: 9.914 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005383/0.3127, allocations: 362.1 kB / 0.5509 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006572/0.3133, allocations: 428.1 kB / 0.5513 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.146e-05/0.3134, allocations: 40.06 kB / 0.5513 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.856e-05/0.3135, allocations: 39.44 kB / 0.5513 GB, free: 9.465 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002239/0.3137, allocations: 214 kB / 0.5515 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003225/0.314, allocations: 272.3 kB / 0.5518 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007752/0.3148, allocations: 0.5826 MB / 0.5524 GB, free: 8.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3148, allocations: 0 / 0.5524 GB, free: 8.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3148, allocations: 0 / 0.5524 GB, free: 8.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.3148, allocations: 0 / 0.5524 GB, free: 8.754 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.001628/0.3164, allocations: 0.8333 MB / 0.5532 GB, free: 8.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.3165, allocations: 14.02 kB / 0.5532 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.3166, allocations: 85.53 kB / 0.5533 GB, free: 8.008 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.3167, allocations: 65.81 kB / 0.5533 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000926/0.3176, allocations: 447.1 kB / 0.5538 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.3177, allocations: 28.94 kB / 0.5538 GB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.055e-05/0.3177, allocations: 46.92 kB / 0.5538 GB, free: 7.594 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008107/0.3186, allocations: 0.5353 MB / 0.5544 GB, free: 7.234 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3186, allocations: 0 / 0.5544 GB, free: 7.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.104e-05/0.3186, allocations: 17.66 kB / 0.5544 GB, free: 7.223 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.31e-05/0.3186, allocations: 21.39 kB / 0.5544 GB, free: 7.219 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006081/0.3193, allocations: 396.2 kB / 0.5548 GB, free: 7.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002618/0.3219, allocations: 1.887 MB / 0.5566 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.3225, allocations: 313.3 kB / 0.5569 GB, free: 5.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/0.3228, allocations: 165.7 kB / 0.5571 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.3228, allocations: 256 / 0.5571 GB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004065/0.3232, allocations: 280.8 kB / 0.5574 GB, free: 4.633 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.333e-06/0.3232, allocations: 3.938 kB / 0.5574 GB, free: 4.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.001915/0.3251, allocations: 1.14 MB / 0.5585 GB, free: 3.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.3252, allocations: 166.2 kB / 0.5586 GB, free: 3.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/0.3256, allocations: 393.8 kB / 0.559 GB, free: 2.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.973e-05/0.3257, allocations: 37.7 kB / 0.559 GB, free: 2.797 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/0.3259, allocations: 292.3 kB / 0.5593 GB, free: 2.508 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.326, allocations: 126.9 kB / 0.5594 GB, free: 2.383 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.3262, allocations: 94.12 kB / 0.5595 GB, free: 2.285 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.3263, allocations: 362.8 kB / 0.5599 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.3265, allocations: 120.9 kB / 0.56 GB, free: 1.801 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003402/0.3269, allocations: 289.5 kB / 0.5603 GB, free: 1.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005798/0.3274, allocations: 481.3 kB / 0.5607 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3275, allocations: 0 / 0.5607 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007687/0.3282, allocations: 0.5217 MB / 0.5612 GB, free: 368 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.922e-05/0.3283, allocations: 37.69 kB / 0.5613 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.3283, allocations: 8 kB / 0.5613 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3283, allocations: 8.062 kB / 0.5613 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004272/0.3287, allocations: 108.5 kB / 0.5614 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/0.3287, allocations: 23.91 kB / 0.5614 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002568/0.329, allocations: 23.98 kB / 0.5614 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.838e-05/0.329, allocations: 27.98 kB / 0.5615 GB, free: 124 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.0002931/0.3293, allocations: 247.3 kB / 0.5617 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.836e-05/0.3294, allocations: 51.66 kB / 0.5617 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007127/0.3301, allocations: 451.4 kB / 0.5622 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3301, allocations: 0 / 0.5622 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3301, allocations: 8 kB / 0.5622 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3301, allocations: 0 / 0.5622 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.3315, allocations: 0.9502 MB / 0.5631 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3315, allocations: 0 / 0.5631 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.3318, allocations: 59.91 kB / 0.5632 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.3318, allocations: 0 / 0.5632 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.916e-05/0.3318, allocations: 20.05 kB / 0.5632 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.3319, allocations: 0 / 0.5632 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3319, allocations: 4 kB / 0.5632 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000977/0.3328, allocations: 0.7037 MB / 0.5639 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.333, allocations: 67.66 kB / 0.5639 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.215e-05/0.333, allocations: 20.05 kB / 0.564 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.3333, allocations: 12 kB / 0.564 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/0.3333, allocations: 27.88 kB / 0.564 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.274e-05/0.3334, allocations: 35.95 kB / 0.564 GB, free: 13.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002843/0.3336, allocations: 267.1 kB / 0.5643 GB, free: 13.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3336, allocations: 0 / 0.5643 GB, free: 13.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004397/0.3341, allocations: 107.9 kB / 0.5644 GB, free: 12.99 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.001264/0.3354, allocations: 1.277 MB / 0.5656 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006077/0.336, allocations: 387.6 kB / 0.566 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.336, allocations: 0 / 0.566 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.3363, allocations: 227.2 kB / 0.5662 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006226/0.3369, allocations: 105.5 kB / 0.5663 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005152/0.342, allocations: 4.131 MB / 0.5704 GB, free: 6.566 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005284/0.3426, allocations: 0.8859 MB / 0.5712 GB, free: 5.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002668/0.3428, allocations: 88.3 kB / 0.5713 GB, free: 5.562 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002373/0.3431, allocations: 171.4 kB / 0.5715 GB, free: 5.395 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3431, allocations: 0 / 0.5715 GB, free: 5.395 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03969/0.3828, allocations: 9.17 MB / 0.5804 GB, free: 12.39 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.24, allocations: 2.406 kB / 0.5804 GB, free: 12.39 MB / 430.1 MB " [Timeout remaining time 648] (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: 15.188454920891672]