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/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.001356/0.001356, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002094/0.002094, allocations: 213.8 kB / 23.74 MB, free: 4.656 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.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.1836/0.1836, allocations: 38.53 MB / 352.5 MB, free: 12.56 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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.002199/0.002199, allocations: 75.02 kB / 492.6 MB, free: 4.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3226, allocations: 62.46 MB / 0.542 GB, free: 476 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005448/0.3281, allocations: 4.073 MB / 0.546 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.3297, allocations: 0.9131 MB / 0.5469 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.3298, allocations: 18.62 kB / 0.5469 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.33, allocations: 43.88 kB / 0.5469 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004466/0.3304, allocations: 165.3 kB / 0.5471 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.3306, allocations: 91.36 kB / 0.5472 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004262/0.3311, allocations: 375.8 kB / 0.5475 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.3312, allocations: 61.88 kB / 0.5476 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003022/0.3315, allocations: 178.4 kB / 0.5478 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002967/0.3318, allocations: 172.3 kB / 0.5479 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.311e-05/0.3319, allocations: 16.72 kB / 0.5479 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.238e-05/0.3319, allocations: 17.34 kB / 0.548 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.332, allocations: 86.39 kB / 0.548 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.3321, allocations: 128.7 kB / 0.5482 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003218/0.3325, allocations: 258.2 kB / 0.5484 GB, free: 11.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.227e-06/0.3325, allocations: 1.094 kB / 0.5484 GB, free: 11.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3325, allocations: 0 / 0.5484 GB, free: 11.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.3325, allocations: 0 / 0.5484 GB, free: 11.52 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0008613/0.3333, allocations: 0.4919 MB / 0.5489 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.3334, allocations: 13.86 kB / 0.5489 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.222e-05/0.3334, allocations: 53.61 kB / 0.549 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.306e-05/0.3335, allocations: 30.38 kB / 0.549 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004814/0.334, allocations: 271.8 kB / 0.5492 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.334, allocations: 16.81 kB / 0.5493 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.59e-05/0.334, allocations: 20.31 kB / 0.5493 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.3344, allocations: 268.2 kB / 0.5495 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.3344, allocations: 0 / 0.5495 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.34e-05/0.3345, allocations: 15.67 kB / 0.5496 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.3345, allocations: 5.188 kB / 0.5496 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.3348, allocations: 159.7 kB / 0.5497 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.3361, allocations: 1.144 MB / 0.5508 GB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.3363, allocations: 68.8 kB / 0.5509 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.349e-05/0.3363, allocations: 31.75 kB / 0.5509 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.3363, allocations: 5.094 kB / 0.5509 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.3364, allocations: 39.75 kB / 0.551 GB, free: 9.258 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.3364, allocations: 0 / 0.551 GB, free: 9.258 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.000804/0.3372, allocations: 336.8 kB / 0.5513 GB, free: 8.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.3373, allocations: 79.7 kB / 0.5514 GB, free: 8.887 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.3375, allocations: 248.8 kB / 0.5516 GB, free: 8.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.3375, allocations: 29.7 kB / 0.5516 GB, free: 8.676 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.3377, allocations: 199.5 kB / 0.5518 GB, free: 8.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.3377, allocations: 31.64 kB / 0.5519 GB, free: 8.461 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.592e-05/0.3378, allocations: 39.61 kB / 0.5519 GB, free: 8.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.3379, allocations: 332.3 kB / 0.5522 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.262e-05/0.338, allocations: 22.03 kB / 0.5522 GB, free: 8.094 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.3381, allocations: 128 kB / 0.5523 GB, free: 7.949 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.3383, allocations: 166.1 kB / 0.5525 GB, free: 7.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3383, allocations: 4.906 kB / 0.5525 GB, free: 7.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002745/0.3386, allocations: 182.6 kB / 0.5527 GB, free: 7.672 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3386, allocations: 14.5 kB / 0.5527 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.3386, allocations: 3.844 kB / 0.5527 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.3387, allocations: 12.47 kB / 0.5527 GB, free: 7.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.3388, allocations: 35.3 kB / 0.5527 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.3388, allocations: 9.281 kB / 0.5528 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.369e-05/0.3389, allocations: 7.469 kB / 0.5528 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.3389, allocations: 8.375 kB / 0.5528 GB, free: 7.645 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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.000142/0.3391, allocations: 154.2 kB / 0.5529 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.681e-05/0.3391, allocations: 30.11 kB / 0.5529 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001648/0.3393, allocations: 97.12 kB / 0.553 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3393, allocations: 1.406 kB / 0.553 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3393, allocations: 4.844 kB / 0.553 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3393, allocations: 1.344 kB / 0.553 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000541/0.3398, allocations: 400.1 kB / 0.5534 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3398, allocations: 0 / 0.5534 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.959e-05/0.3399, allocations: 14.69 kB / 0.5534 GB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3399, allocations: 5.281 kB / 0.5534 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.34, allocations: 5.219 kB / 0.5535 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.34, allocations: 0.8438 kB / 0.5535 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.34, allocations: 1.062 kB / 0.5535 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.3402, allocations: 227.6 kB / 0.5537 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.445e-05/0.3403, allocations: 26 kB / 0.5537 GB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.3403, allocations: 6.469 kB / 0.5537 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.205e-05/0.3404, allocations: 1.188 kB / 0.5537 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.62e-05/0.3404, allocations: 6.266 kB / 0.5537 GB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.3404, allocations: 6.344 kB / 0.5537 GB, free: 6.797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001735/0.3406, allocations: 168.4 kB / 0.5539 GB, free: 6.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3406, allocations: 0 / 0.5539 GB, free: 6.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003016/0.3409, allocations: 40.34 kB / 0.5539 GB, free: 6.676 MB / 398.1 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 () * Number of clocked 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 (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.0006394/0.3415, allocations: 0.7693 MB / 0.5547 GB, free: 5.938 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001802/0.3417, allocations: 76.14 kB / 0.5547 GB, free: 5.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.453e-06/0.3417, allocations: 4.25 kB / 0.5547 GB, free: 5.906 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.991e-05/0.3418, allocations: 28.36 kB / 0.5548 GB, free: 5.895 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004709/0.3423, allocations: 55.8 kB / 0.5548 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.3453, allocations: 2.306 MB / 0.5571 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005132/0.3458, allocations: 0.7586 MB / 0.5578 GB, free: 3.164 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.3459, allocations: 26.25 kB / 0.5578 GB, free: 3.148 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.346, allocations: 75.25 kB / 0.5579 GB, free: 3.086 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.346, allocations: 0 / 0.5579 GB, free: 3.086 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03525/0.3813, allocations: 4.389 MB / 0.5622 GB, free: 15.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.48, allocations: 7.844 kB / 0.5622 GB, free: 15.25 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.208555076969787]