Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.00138/0.00138, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001727/0.001727, allocations: 202.2 kB / 24.52 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.52/1.52, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.1844/0.1844, allocations: 38.52 MB / 353.2 MB, free: 12.59 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.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",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.002318/0.002318, allocations: 62.56 kB / 493.3 MB, free: 4.938 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3671, allocations: 62.47 MB / 0.5428 GB, free: 468 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005774/0.3729, allocations: 3.601 MB / 0.5463 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002508/0.3754, allocations: 1.553 MB / 0.5478 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.3756, allocations: 8.562 kB / 0.5478 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009126/0.3765, allocations: 272.5 kB / 0.5481 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007478/0.3772, allocations: 278.3 kB / 0.5483 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004118/0.3776, allocations: 130.4 kB / 0.5485 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004808/0.3781, allocations: 338.4 kB / 0.5488 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003028/0.3784, allocations: 123.4 kB / 0.5489 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003704/0.3788, allocations: 167 kB / 0.5491 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.3791, allocations: 166.6 kB / 0.5492 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/0.3792, allocations: 14.19 kB / 0.5492 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007993/0.38, allocations: 342.9 kB / 0.5496 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002284/0.3802, allocations: 100.9 kB / 0.5497 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.3804, allocations: 102.7 kB / 0.5497 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009282/0.3813, allocations: 362.7 kB / 0.5501 GB, free: 10.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.994e-06/0.3813, allocations: 4 kB / 0.5501 GB, free: 10.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.017e-06/0.3813, allocations: 3.938 kB / 0.5501 GB, free: 10.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.3814, allocations: 0 / 0.5501 GB, free: 10.88 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.00115/0.3825, allocations: 458.5 kB / 0.5505 GB, free: 10.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.66e-05/0.3826, allocations: 14.83 kB / 0.5506 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.521e-05/0.3826, allocations: 3.781 kB / 0.5506 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.347e-05/0.3827, allocations: 58.75 kB / 0.5506 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/0.3838, allocations: 92.62 kB / 0.5507 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004212/0.3842, allocations: 214.8 kB / 0.5509 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.3842, allocations: 10.44 kB / 0.5509 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.3843, allocations: 16.16 kB / 0.5509 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006111/0.3849, allocations: 333.6 kB / 0.5512 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.3849, allocations: 4 kB / 0.5513 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.3849, allocations: 6.906 kB / 0.5513 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.126e-05/0.385, allocations: 17.67 kB / 0.5513 GB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004751/0.3855, allocations: 292.9 kB / 0.5516 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.3875, allocations: 1.23 MB / 0.5528 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.3879, allocations: 232.4 kB / 0.553 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.3881, allocations: 87.58 kB / 0.5531 GB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.3881, allocations: 5.031 kB / 0.5531 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.3882, allocations: 36.86 kB / 0.5531 GB, free: 8.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 2.855e-06/0.3882, allocations: 0 / 0.5531 GB, free: 8.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009833/0.3891, allocations: 455.2 kB / 0.5535 GB, free: 8.227 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.3892, allocations: 80.48 kB / 0.5536 GB, free: 8.133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.3894, allocations: 196.1 kB / 0.5538 GB, free: 7.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.3894, allocations: 26.7 kB / 0.5538 GB, free: 7.953 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.3896, allocations: 171.2 kB / 0.554 GB, free: 7.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.609e-05/0.3896, allocations: 59.3 kB / 0.554 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.015e-05/0.3897, allocations: 52.62 kB / 0.5541 GB, free: 7.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3899, allocations: 326.9 kB / 0.5544 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.39, allocations: 88.36 kB / 0.5545 GB, free: 7.336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.3902, allocations: 162.5 kB / 0.5546 GB, free: 7.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003724/0.3906, allocations: 261 kB / 0.5549 GB, free: 7.016 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3906, allocations: 1.094 kB / 0.5549 GB, free: 7.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004546/0.391, allocations: 306 kB / 0.5552 GB, free: 6.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.391, allocations: 10 kB / 0.5552 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3911, allocations: 3.438 kB / 0.5552 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3911, allocations: 3.438 kB / 0.5552 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002575/0.3913, allocations: 51.47 kB / 0.5553 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.3913, allocations: 3.5 kB / 0.5553 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.3915, allocations: 19.52 kB / 0.5553 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.3915, allocations: 7.594 kB / 0.5553 GB, free: 6.816 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (27): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002318/0.3917, allocations: 156.9 kB / 0.5554 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.174e-05/0.3918, allocations: 20.34 kB / 0.5555 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004195/0.3922, allocations: 229.2 kB / 0.5557 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.3922, allocations: 6.609 kB / 0.5557 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3922, allocations: 0 / 0.5557 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3922, allocations: 5.359 kB / 0.5557 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.3936, allocations: 0.9169 MB / 0.5566 GB, free: 5.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/0.3936, allocations: 7.609 kB / 0.5566 GB, free: 5.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.3938, allocations: 34.73 kB / 0.5566 GB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.423e-06/0.3938, allocations: 5.969 kB / 0.5566 GB, free: 5.781 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.3938, allocations: 13.16 kB / 0.5566 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.3938, allocations: 13.72 kB / 0.5566 GB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.3938, allocations: 8.188 kB / 0.5567 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004654/0.3943, allocations: 416.8 kB / 0.5571 GB, free: 5.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/0.3943, allocations: 21.69 kB / 0.5571 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.453e-05/0.3944, allocations: 17.33 kB / 0.5571 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.3945, allocations: 5.906 kB / 0.5571 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.962e-05/0.3946, allocations: 32.69 kB / 0.5571 GB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.3946, allocations: 8 kB / 0.5571 GB, free: 5.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001429/0.3947, allocations: 155 kB / 0.5573 GB, free: 5.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3947, allocations: 0 / 0.5573 GB, free: 5.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003881/0.3951, allocations: 55.92 kB / 0.5573 GB, free: 5.125 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * 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.0007314/0.3959, allocations: 0.9365 MB / 0.5583 GB, free: 4.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003768/0.3962, allocations: 222 kB / 0.5585 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3962, allocations: 0 / 0.5585 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.3964, allocations: 97.2 kB / 0.5586 GB, free: 3.805 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.3968, allocations: 43.91 kB / 0.5586 GB, free: 3.762 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.4004, allocations: 2.696 MB / 0.5612 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.4008, allocations: 0.7632 MB / 0.562 GB, free: 40 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001908/0.401, allocations: 53.64 kB / 0.562 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.4012, allocations: 59.42 kB / 0.5621 GB, free: 15.92 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4012, allocations: 0 / 0.5621 GB, free: 15.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02562/0.4268, allocations: 4.475 MB / 0.5665 GB, free: 11.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.7, allocations: 10.78 kB / 0.5665 GB, free: 11.58 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.796583514020313]