Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.001573/0.001573, 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.002193/0.002193, 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.546/1.546, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.1933/0.1933, allocations: 38.53 MB / 353.2 MB, free: 12.55 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.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.ImpedanceTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest",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.002881/0.002881, allocations: 59.91 kB / 493.3 MB, free: 4.914 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3795, allocations: 62.47 MB / 0.5428 GB, free: 464 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.ImpedanceTest): time 0.007334/0.3868, allocations: 3.578 MB / 0.5463 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003484/0.3903, allocations: 1.498 MB / 0.5477 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.3905, allocations: 13.06 kB / 0.5477 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.3917, allocations: 264.5 kB / 0.548 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001135/0.3928, allocations: 281.2 kB / 0.5483 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005392/0.3933, allocations: 106.3 kB / 0.5484 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006833/0.394, allocations: 341.2 kB / 0.5487 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004221/0.3944, allocations: 122.6 kB / 0.5488 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004883/0.3949, allocations: 155.7 kB / 0.5489 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004354/0.3954, allocations: 169.1 kB / 0.5491 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.3954, allocations: 13.5 kB / 0.5491 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009504/0.3964, allocations: 317.1 kB / 0.5494 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.3966, allocations: 103.3 kB / 0.5495 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.3968, allocations: 104.8 kB / 0.5496 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008253/0.3976, allocations: 344.3 kB / 0.5499 GB, free: 10.99 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3976, allocations: 0 / 0.5499 GB, free: 10.99 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3976, allocations: 0 / 0.5499 GB, free: 10.99 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3976, allocations: 1.094 kB / 0.5499 GB, free: 10.99 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.001053/0.3987, allocations: 455.7 kB / 0.5504 GB, free: 10.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.3987, allocations: 13.73 kB / 0.5504 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.321e-05/0.3988, allocations: 5.656 kB / 0.5504 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.095e-05/0.3988, allocations: 53.23 kB / 0.5505 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001625/0.4005, allocations: 99.73 kB / 0.5505 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005916/0.4011, allocations: 214.9 kB / 0.5508 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.4011, allocations: 15.06 kB / 0.5508 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.836e-05/0.4012, allocations: 19.06 kB / 0.5508 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000803/0.402, allocations: 320.2 kB / 0.5511 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.402, allocations: 1.031 kB / 0.5511 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.835e-05/0.402, allocations: 10 kB / 0.5511 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.812e-05/0.4021, allocations: 16.89 kB / 0.5511 GB, free: 10.03 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000729/0.4028, allocations: 284.9 kB / 0.5514 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.4056, allocations: 1.265 MB / 0.5526 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.4067, allocations: 202.9 kB / 0.5528 GB, free: 8.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.4068, allocations: 52.98 kB / 0.5529 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.4069, allocations: 1.094 kB / 0.5529 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.212e-05/0.4069, allocations: 33.03 kB / 0.5529 GB, free: 8.605 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 3.666e-06/0.4069, allocations: 0 / 0.5529 GB, free: 8.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.001644/0.4086, allocations: 369.9 kB / 0.5533 GB, free: 8.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.057e-05/0.4087, allocations: 79.39 kB / 0.5533 GB, free: 8.289 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003501/0.409, allocations: 199.2 kB / 0.5535 GB, free: 8.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.409, allocations: 26.67 kB / 0.5535 GB, free: 8.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.4092, allocations: 164 kB / 0.5537 GB, free: 7.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.723e-05/0.4093, allocations: 50.22 kB / 0.5537 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.4094, allocations: 45.42 kB / 0.5538 GB, free: 7.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.4096, allocations: 336.3 kB / 0.5541 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.4098, allocations: 52.56 kB / 0.5542 GB, free: 7.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.41, allocations: 141.7 kB / 0.5543 GB, free: 7.371 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005324/0.4106, allocations: 235.3 kB / 0.5545 GB, free: 7.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.4106, allocations: 1.031 kB / 0.5545 GB, free: 7.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008423/0.4114, allocations: 261.2 kB / 0.5548 GB, free: 7.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.4115, allocations: 6.719 kB / 0.5548 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/0.4115, allocations: 3.938 kB / 0.5548 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003679/0.4118, allocations: 40.83 kB / 0.5548 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.4121, allocations: 44.62 kB / 0.5549 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001957/0.414, allocations: 1.337 MB / 0.5562 GB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.4143, allocations: 7.531 kB / 0.5562 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.811e-05/0.4143, allocations: 13 kB / 0.5562 GB, free: 5.633 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): 23 * 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.0002585/0.4146, allocations: 158.2 kB / 0.5563 GB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.032e-05/0.4146, allocations: 23.59 kB / 0.5564 GB, free: 5.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005808/0.4152, allocations: 184.8 kB / 0.5565 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.4152, allocations: 6.391 kB / 0.5565 GB, free: 5.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.4152, allocations: 8 kB / 0.5566 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.4152, allocations: 1.375 kB / 0.5566 GB, free: 5.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001306/0.4165, allocations: 0.5334 MB / 0.5571 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.4165, allocations: 1.156 kB / 0.5571 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.4167, allocations: 20.83 kB / 0.5571 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001996/0.4169, allocations: 39.14 kB / 0.5571 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.4169, allocations: 6.188 kB / 0.5571 GB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/0.4185, allocations: 1.316 MB / 0.5584 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4185, allocations: 1.125 kB / 0.5584 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006501/0.4191, allocations: 302.4 kB / 0.5587 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.4192, allocations: 22.72 kB / 0.5587 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.4193, allocations: 6.375 kB / 0.5587 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.4195, allocations: 6.141 kB / 0.5587 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.048e-05/0.4195, allocations: 16.58 kB / 0.5588 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.4195, allocations: 4.5 kB / 0.5588 GB, free: 3.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002285/0.4198, allocations: 140.8 kB / 0.5589 GB, free: 3.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4198, allocations: 3.938 kB / 0.5589 GB, free: 3.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006527/0.4204, allocations: 49.41 kB / 0.559 GB, free: 3.129 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (14): * 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: 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.001048/0.4215, allocations: 0.8403 MB / 0.5598 GB, free: 2.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007429/0.4222, allocations: 265.3 kB / 0.56 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4222, allocations: 0 / 0.56 GB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003147/0.4225, allocations: 171.4 kB / 0.5602 GB, free: 1.902 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005666/0.4231, allocations: 39.19 kB / 0.5602 GB, free: 1.867 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.4263, allocations: 2.376 MB / 0.5625 GB, free: 15.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.4267, allocations: 0.7631 MB / 0.5633 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.4269, allocations: 49.59 kB / 0.5633 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.975e-05/0.427, allocations: 55.41 kB / 0.5634 GB, free: 14.39 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.427, allocations: 0 / 0.5634 GB, free: 14.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02744/0.4544, allocations: 4.153 MB / 0.5674 GB, free: 10.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.09, allocations: 4.062 kB / 0.5675 GB, free: 10.37 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_ImpedanceTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.ImpedanceTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.ImpedanceTest.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.193599891965277]