Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.001861/0.001861, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002368/0.002368, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.48/1.48, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.1956/0.1956, allocations: 38.55 MB / 352.5 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.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.00241/0.00241, allocations: 67.91 kB / 492.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3194, allocations: 62.46 MB / 0.5419 GB, free: 276 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.007605/0.327, allocations: 4.27 MB / 0.5461 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.3288, allocations: 0.9054 MB / 0.547 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/0.329, allocations: 19.72 kB / 0.547 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002071/0.3292, allocations: 57.7 kB / 0.5471 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000634/0.3299, allocations: 244.8 kB / 0.5473 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.3301, allocations: 103 kB / 0.5474 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005535/0.3307, allocations: 0.495 MB / 0.5479 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.3309, allocations: 91.66 kB / 0.548 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004344/0.3313, allocations: 242 kB / 0.5482 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004319/0.3318, allocations: 275.5 kB / 0.5485 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.128e-05/0.3318, allocations: 23.22 kB / 0.5485 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.94e-05/0.3319, allocations: 28.59 kB / 0.5485 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.3321, allocations: 150.4 kB / 0.5487 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001737/0.3322, allocations: 141.5 kB / 0.5488 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004493/0.3327, allocations: 376.5 kB / 0.5491 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3327, allocations: 1.969 kB / 0.5492 GB, free: 10.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3327, allocations: 0 / 0.5492 GB, free: 10.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.3327, allocations: 0 / 0.5492 GB, free: 10.93 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001122/0.3338, allocations: 0.5919 MB / 0.5497 GB, free: 10.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.3339, allocations: 13.33 kB / 0.5497 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.118e-05/0.3339, allocations: 65.06 kB / 0.5498 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.145e-05/0.334, allocations: 42.45 kB / 0.5498 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006065/0.3346, allocations: 318.1 kB / 0.5501 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.3346, allocations: 23.47 kB / 0.5502 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.65e-05/0.3347, allocations: 24.28 kB / 0.5502 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005572/0.3353, allocations: 356.9 kB / 0.5505 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3353, allocations: 0 / 0.5505 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.3353, allocations: 7.375 kB / 0.5505 GB, free: 9.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.3354, allocations: 30.47 kB / 0.5506 GB, free: 9.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004086/0.3358, allocations: 241.3 kB / 0.5508 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.3376, allocations: 1.28 MB / 0.5521 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.3379, allocations: 165.1 kB / 0.5522 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.3381, allocations: 89.95 kB / 0.5523 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.3382, allocations: 2.406 kB / 0.5523 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.3382, allocations: 36.75 kB / 0.5523 GB, free: 8.379 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.3382, allocations: 0 / 0.5523 GB, free: 8.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001327/0.3395, allocations: 0.6215 MB / 0.5529 GB, free: 7.949 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/0.3396, allocations: 79.36 kB / 0.553 GB, free: 7.855 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003222/0.3399, allocations: 300.4 kB / 0.5533 GB, free: 7.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.3399, allocations: 30.86 kB / 0.5533 GB, free: 7.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.3401, allocations: 219.9 kB / 0.5535 GB, free: 7.422 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.436e-05/0.3402, allocations: 63.77 kB / 0.5536 GB, free: 7.367 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.848e-05/0.3402, allocations: 51.94 kB / 0.5536 GB, free: 7.328 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3404, allocations: 338 kB / 0.554 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.3405, allocations: 68.89 kB / 0.554 GB, free: 6.965 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/0.3407, allocations: 165.7 kB / 0.5542 GB, free: 6.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.3411, allocations: 255.5 kB / 0.5544 GB, free: 6.598 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3411, allocations: 0 / 0.5544 GB, free: 6.598 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005443/0.3416, allocations: 321.3 kB / 0.5547 GB, free: 6.422 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.3416, allocations: 6.219 kB / 0.5548 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.3417, allocations: 3.656 kB / 0.5548 GB, free: 6.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.3419, allocations: 53.19 kB / 0.5548 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.342, allocations: 53.22 kB / 0.5549 GB, free: 6.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.3436, allocations: 1.506 MB / 0.5563 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.3438, allocations: 17.64 kB / 0.5563 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.3438, allocations: 9.75 kB / 0.5564 GB, free: 4.949 MB / 398.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.344, allocations: 174.6 kB / 0.5565 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.419e-05/0.3441, allocations: 23.83 kB / 0.5565 GB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004438/0.3445, allocations: 240.4 kB / 0.5568 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.3445, allocations: 7.984 kB / 0.5568 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.165e-06/0.3445, allocations: 3.938 kB / 0.5568 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3445, allocations: 3.984 kB / 0.5568 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009534/0.3455, allocations: 0.5927 MB / 0.5574 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3455, allocations: 0 / 0.5574 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.3456, allocations: 23.98 kB / 0.5574 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/0.3458, allocations: 56.8 kB / 0.5574 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.3458, allocations: 4 kB / 0.5574 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.3472, allocations: 1.494 MB / 0.5589 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3472, allocations: 0 / 0.5589 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005652/0.3478, allocations: 418.3 kB / 0.5593 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.228e-05/0.3479, allocations: 23.84 kB / 0.5593 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.064e-05/0.3479, allocations: 11.98 kB / 0.5593 GB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.348, allocations: 8.219 kB / 0.5593 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/0.3481, allocations: 15.97 kB / 0.5594 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.3481, allocations: 4 kB / 0.5594 GB, free: 1.715 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002224/0.3483, allocations: 207.1 kB / 0.5596 GB, free: 1.512 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3483, allocations: 0 / 0.5596 GB, free: 1.512 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000406/0.3487, allocations: 72 kB / 0.5596 GB, free: 1.441 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008748/0.3496, allocations: 0.9478 MB / 0.5606 GB, free: 472 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000585/0.3502, allocations: 302.5 kB / 0.5608 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3502, allocations: 0 / 0.5608 GB, free: 156 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000372/0.3506, allocations: 207.4 kB / 0.561 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.3511, allocations: 71.72 kB / 0.5611 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003976/0.3551, allocations: 3.055 MB / 0.5641 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.3553, allocations: 203.5 kB / 0.5643 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001739/0.3555, allocations: 42.95 kB / 0.5643 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3556, allocations: 99.39 kB / 0.5644 GB, free: 12.27 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3556, allocations: 0 / 0.5644 GB, free: 12.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04014/0.3958, allocations: 6.792 MB / 0.5711 GB, free: 5.652 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.04, allocations: 11.91 kB / 0.5711 GB, free: 5.641 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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: 14.873698510229588]