Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.001652/0.001652, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002169/0.002169, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.503/1.503, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.1889/0.1889, allocations: 38.56 MB / 353.2 MB, free: 12.32 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.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.002909/0.002909, allocations: 68.17 kB / 493.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3583, allocations: 62.47 MB / 0.5427 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.006976/0.3653, allocations: 4.47 MB / 0.5471 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002956/0.3682, allocations: 1.408 MB / 0.5484 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002824/0.3685, allocations: 21.5 kB / 0.5485 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.3697, allocations: 366.4 kB / 0.5488 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007209/0.3704, allocations: 243.5 kB / 0.5491 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009015/0.3713, allocations: 255.7 kB / 0.5493 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008377/0.3722, allocations: 0.5606 MB / 0.5498 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004924/0.3727, allocations: 246 kB / 0.5501 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004843/0.3732, allocations: 281.2 kB / 0.5503 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000539/0.3737, allocations: 334.8 kB / 0.5507 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.254e-05/0.3738, allocations: 34.91 kB / 0.5507 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003627/0.3741, allocations: 155.1 kB / 0.5508 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002727/0.3744, allocations: 229.1 kB / 0.5511 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.3747, allocations: 211.5 kB / 0.5513 GB, free: 9.926 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007737/0.3754, allocations: 0.6082 MB / 0.5519 GB, free: 9.531 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3754, allocations: 0 / 0.5519 GB, free: 9.531 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3754, allocations: 1 kB / 0.5519 GB, free: 9.531 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.3754, allocations: 0 / 0.5519 GB, free: 9.531 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001514/0.377, allocations: 0.7169 MB / 0.5526 GB, free: 8.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.377, allocations: 13.86 kB / 0.5526 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.865e-05/0.377, allocations: 11.16 kB / 0.5526 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.3771, allocations: 88.44 kB / 0.5527 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008187/0.378, allocations: 127.1 kB / 0.5528 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.3787, allocations: 354.2 kB / 0.5531 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.3787, allocations: 45.61 kB / 0.5532 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.3789, allocations: 48.7 kB / 0.5532 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.38, allocations: 0.6449 MB / 0.5538 GB, free: 8.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.38, allocations: 8.984 kB / 0.5539 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.122e-05/0.3801, allocations: 21.67 kB / 0.5539 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001161/0.3802, allocations: 29.58 kB / 0.5539 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008063/0.381, allocations: 483.9 kB / 0.5544 GB, free: 7.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003899/0.3849, allocations: 2.85 MB / 0.5571 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.3853, allocations: 173 kB / 0.5573 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001754/0.3855, allocations: 101.7 kB / 0.5574 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.249e-05/0.3855, allocations: 4 kB / 0.5574 GB, free: 4.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/0.3855, allocations: 38.5 kB / 0.5575 GB, free: 4.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.745e-06/0.3855, allocations: 3.938 kB / 0.5575 GB, free: 4.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=21): time 0.001795/0.3873, allocations: 0.7684 MB / 0.5582 GB, free: 4.051 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.3874, allocations: 85.05 kB / 0.5583 GB, free: 3.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000406/0.3878, allocations: 349.6 kB / 0.5586 GB, free: 3.602 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.3878, allocations: 25.7 kB / 0.5586 GB, free: 3.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.3881, allocations: 307.9 kB / 0.5589 GB, free: 3.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.957e-05/0.3882, allocations: 91.39 kB / 0.559 GB, free: 3.176 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.3883, allocations: 86.08 kB / 0.5591 GB, free: 3.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.3885, allocations: 346.8 kB / 0.5594 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.3887, allocations: 124.8 kB / 0.5596 GB, free: 2.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004761/0.3891, allocations: 326.8 kB / 0.5599 GB, free: 2.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.3898, allocations: 0.4969 MB / 0.5604 GB, free: 1.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.3898, allocations: 4 kB / 0.5604 GB, free: 1.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001079/0.3909, allocations: 0.5563 MB / 0.5609 GB, free: 1.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.3909, allocations: 8 kB / 0.5609 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005906/0.3915, allocations: 282.4 kB / 0.5612 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003848/0.3919, allocations: 76.8 kB / 0.5613 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.3922, allocations: 96.25 kB / 0.5613 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.3941, allocations: 1.619 MB / 0.5629 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003305/0.3944, allocations: 23.98 kB / 0.5629 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.3945, allocations: 23.94 kB / 0.563 GB, free: 14.79 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003231/0.3948, allocations: 217.6 kB / 0.5632 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.395e-05/0.3949, allocations: 35.77 kB / 0.5632 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005517/0.3954, allocations: 291.9 kB / 0.5635 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.3954, allocations: 4 kB / 0.5635 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.3954, allocations: 0 / 0.5635 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.3954, allocations: 3.938 kB / 0.5635 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.3968, allocations: 0.7423 MB / 0.5642 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3968, allocations: 3.938 kB / 0.5642 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000312/0.3971, allocations: 51.97 kB / 0.5643 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3971, allocations: 4.062 kB / 0.5643 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.486e-05/0.3971, allocations: 8 kB / 0.5643 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.3971, allocations: 11.88 kB / 0.5643 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3971, allocations: 0 / 0.5643 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006627/0.3978, allocations: 470.5 kB / 0.5647 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.972e-05/0.3978, allocations: 31.81 kB / 0.5648 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.992e-05/0.3979, allocations: 19.91 kB / 0.5648 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.3981, allocations: 4 kB / 0.5648 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.3981, allocations: 19.91 kB / 0.5648 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.3981, allocations: 8 kB / 0.5648 GB, free: 12.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002534/0.3984, allocations: 239.2 kB / 0.5651 GB, free: 12.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3984, allocations: 0 / 0.5651 GB, free: 12.56 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005048/0.3989, allocations: 92 kB / 0.5651 GB, free: 12.47 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (24): * Single equations (assignments): 23 * 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.0009222/0.3998, allocations: 1.018 MB / 0.5661 GB, free: 11.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007784/0.4006, allocations: 438.7 kB / 0.5666 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4006, allocations: 0 / 0.5666 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.4008, allocations: 107.8 kB / 0.5667 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.4013, allocations: 77.89 kB / 0.5667 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005539/0.4068, allocations: 4.003 MB / 0.5706 GB, free: 6.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.4072, allocations: 262 kB / 0.5709 GB, free: 6.246 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003052/0.4075, allocations: 115.1 kB / 0.571 GB, free: 6.129 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.4077, allocations: 143.4 kB / 0.5711 GB, free: 5.988 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4077, allocations: 4 kB / 0.5711 GB, free: 5.984 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03382/0.4415, allocations: 7.913 MB / 0.5789 GB, free: 14.24 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.62, allocations: 7.344 kB / 0.5789 GB, free: 14.23 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --stepSize=8e-05 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Impedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Impedance.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.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: 15.666127072065137]