Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.001311/0.001311, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001449/0.001449, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.452/1.452, allocations: 230.6 MB / 258.3 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.1906/0.1906, allocations: 38.53 MB / 353.2 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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.002025/0.002025, allocations: 66.72 kB / 493.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.318, allocations: 62.47 MB / 0.5428 GB, free: 464 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006232/0.3243, allocations: 4.231 MB / 0.5469 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.326, allocations: 0.9451 MB / 0.5478 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002322/0.3262, allocations: 18.22 kB / 0.5478 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002371/0.3265, allocations: 43.81 kB / 0.5479 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006456/0.3271, allocations: 182.3 kB / 0.5481 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.3274, allocations: 93.03 kB / 0.5481 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005405/0.3279, allocations: 402.8 kB / 0.5485 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000245/0.3282, allocations: 86.86 kB / 0.5486 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000388/0.3286, allocations: 184.2 kB / 0.5488 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003599/0.3289, allocations: 191.3 kB / 0.549 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.594e-05/0.329, allocations: 18.53 kB / 0.549 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.729e-05/0.329, allocations: 23.66 kB / 0.549 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.3292, allocations: 88.28 kB / 0.5491 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.3293, allocations: 139.3 kB / 0.5492 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004542/0.3298, allocations: 297.2 kB / 0.5495 GB, free: 11.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3298, allocations: 3.938 kB / 0.5495 GB, free: 11.26 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3298, allocations: 0 / 0.5495 GB, free: 11.26 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.3298, allocations: 1.094 kB / 0.5495 GB, free: 11.26 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001102/0.3309, allocations: 0.53 MB / 0.55 GB, free: 10.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.331, allocations: 13.05 kB / 0.55 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.688e-05/0.331, allocations: 10.47 kB / 0.5501 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.383e-05/0.3311, allocations: 63.19 kB / 0.5501 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.939e-05/0.3311, allocations: 31.25 kB / 0.5501 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/0.3316, allocations: 282.5 kB / 0.5504 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.3317, allocations: 17.47 kB / 0.5504 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.3317, allocations: 23.12 kB / 0.5505 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.3322, allocations: 289.2 kB / 0.5507 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3322, allocations: 0 / 0.5507 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.3322, allocations: 10.12 kB / 0.5507 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3322, allocations: 6.625 kB / 0.5507 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.3325, allocations: 182.1 kB / 0.5509 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.3341, allocations: 1.189 MB / 0.5521 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003431/0.3344, allocations: 101.6 kB / 0.5522 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.3345, allocations: 51.12 kB / 0.5522 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.3345, allocations: 1.469 kB / 0.5522 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.3346, allocations: 35.97 kB / 0.5523 GB, free: 8.895 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.3346, allocations: 0 / 0.5523 GB, free: 8.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009005/0.3355, allocations: 416.5 kB / 0.5527 GB, free: 8.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.3355, allocations: 82.8 kB / 0.5527 GB, free: 8.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.3358, allocations: 243.2 kB / 0.553 GB, free: 8.309 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.3358, allocations: 33.83 kB / 0.553 GB, free: 8.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.336, allocations: 205.5 kB / 0.5532 GB, free: 8.082 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.336, allocations: 41.14 kB / 0.5532 GB, free: 8.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.092e-05/0.3361, allocations: 53.19 kB / 0.5533 GB, free: 8.004 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3362, allocations: 328.1 kB / 0.5536 GB, free: 7.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.496e-05/0.3363, allocations: 38.12 kB / 0.5536 GB, free: 7.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.3365, allocations: 129.3 kB / 0.5538 GB, free: 7.516 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002565/0.3367, allocations: 192.6 kB / 0.5539 GB, free: 7.332 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3367, allocations: 4.969 kB / 0.5539 GB, free: 7.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003355/0.3371, allocations: 205.6 kB / 0.5541 GB, free: 7.211 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.3371, allocations: 6.438 kB / 0.5542 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3371, allocations: 4.688 kB / 0.5542 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.3371, allocations: 4.188 kB / 0.5542 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.3373, allocations: 46.22 kB / 0.5542 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.3373, allocations: 13.12 kB / 0.5542 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/0.3374, allocations: 7.656 kB / 0.5542 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.3375, allocations: 12.5 kB / 0.5542 GB, free: 7.184 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 (24): * Single equations (assignments): 24 * 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.0001716/0.3376, allocations: 156.6 kB / 0.5544 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.252e-05/0.3377, allocations: 26.09 kB / 0.5544 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002732/0.3379, allocations: 125.9 kB / 0.5545 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.338, allocations: 2.625 kB / 0.5545 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.338, allocations: 7.938 kB / 0.5545 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.338, allocations: 1.562 kB / 0.5545 GB, free: 6.926 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006799/0.3386, allocations: 452.9 kB / 0.555 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.686e-06/0.3386, allocations: 1.156 kB / 0.555 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.3388, allocations: 21.75 kB / 0.555 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/0.3388, allocations: 6.125 kB / 0.555 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.3388, allocations: 5.156 kB / 0.555 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.3388, allocations: 9.234 kB / 0.555 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3388, allocations: 1.875 kB / 0.555 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003679/0.3392, allocations: 273.1 kB / 0.5553 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.3392, allocations: 26.64 kB / 0.5553 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.3393, allocations: 6.219 kB / 0.5553 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.3394, allocations: 1.031 kB / 0.5553 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.513e-05/0.3394, allocations: 11.2 kB / 0.5553 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.3394, allocations: 3.469 kB / 0.5553 GB, free: 6.266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001844/0.3396, allocations: 178.2 kB / 0.5555 GB, free: 6.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3396, allocations: 3.938 kB / 0.5555 GB, free: 6.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.34, allocations: 43.97 kB / 0.5555 GB, free: 6.129 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 (13): * Single equations (assignments): 12 * 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.0006746/0.3406, allocations: 0.8112 MB / 0.5563 GB, free: 5.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002665/0.3409, allocations: 105.3 kB / 0.5564 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3409, allocations: 0 / 0.5564 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.498e-05/0.341, allocations: 48.39 kB / 0.5565 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005407/0.3415, allocations: 55.95 kB / 0.5565 GB, free: 5.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00321/0.3447, allocations: 2.458 MB / 0.5589 GB, free: 3.242 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.3452, allocations: 0.7723 MB / 0.5597 GB, free: 2.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.3453, allocations: 34.27 kB / 0.5597 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.3455, allocations: 87.39 kB / 0.5598 GB, free: 2.367 MB / 398.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3455, allocations: 3.938 kB / 0.5598 GB, free: 2.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.3744, allocations: 4.871 MB / 0.5646 GB, free: 13.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.09, allocations: 14.86 kB / 0.5646 GB, free: 13.63 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.991519674018491]