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.001974/0.001974, 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.002415/0.002415, 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.595/1.595, allocations: 230.6 MB / 258.3 MB, free: 8 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.1939/0.1939, allocations: 38.53 MB / 353.2 MB, free: 12.53 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.002105/0.002105, allocations: 71.89 kB / 493.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3762, allocations: 62.47 MB / 0.5428 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.006583/0.3828, allocations: 4.076 MB / 0.5468 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.3847, allocations: 0.9047 MB / 0.5476 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.3849, allocations: 14.75 kB / 0.5477 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.3851, allocations: 48.62 kB / 0.5477 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005014/0.3856, allocations: 168.4 kB / 0.5479 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.3858, allocations: 90.67 kB / 0.5479 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004582/0.3863, allocations: 376.3 kB / 0.5483 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/0.3865, allocations: 57.83 kB / 0.5484 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004003/0.3869, allocations: 174.1 kB / 0.5485 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003685/0.3872, allocations: 177.3 kB / 0.5487 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.3873, allocations: 16.31 kB / 0.5487 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.235e-05/0.3873, allocations: 21.5 kB / 0.5487 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.3875, allocations: 82.55 kB / 0.5488 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.3877, allocations: 123.2 kB / 0.5489 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004544/0.3881, allocations: 255.7 kB / 0.5492 GB, free: 11.47 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3881, allocations: 0 / 0.5492 GB, free: 11.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3881, allocations: 1.125 kB / 0.5492 GB, free: 11.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.3881, allocations: 0 / 0.5492 GB, free: 11.47 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.001215/0.3893, allocations: 0.4992 MB / 0.5497 GB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.3894, allocations: 14.08 kB / 0.5497 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.091e-05/0.3894, allocations: 5.156 kB / 0.5497 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.022e-05/0.3895, allocations: 54.64 kB / 0.5497 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.905e-05/0.3896, allocations: 29.62 kB / 0.5498 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005716/0.3901, allocations: 275.3 kB / 0.55 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.3902, allocations: 16.38 kB / 0.55 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.737e-05/0.3902, allocations: 21.69 kB / 0.5501 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005103/0.3907, allocations: 267 kB / 0.5503 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.3907, allocations: 1.156 kB / 0.5503 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.3908, allocations: 10.28 kB / 0.5503 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.3908, allocations: 5.375 kB / 0.5503 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/0.3911, allocations: 159.8 kB / 0.5505 GB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.3927, allocations: 1.145 MB / 0.5516 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.3929, allocations: 76.97 kB / 0.5517 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.309e-05/0.3929, allocations: 23.88 kB / 0.5517 GB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.3929, allocations: 9.391 kB / 0.5517 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.393, allocations: 39.91 kB / 0.5517 GB, free: 9.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.393, allocations: 0 / 0.5517 GB, free: 9.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008213/0.3938, allocations: 340.9 kB / 0.5521 GB, free: 8.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.3939, allocations: 78.95 kB / 0.5521 GB, free: 8.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.3941, allocations: 244.5 kB / 0.5524 GB, free: 8.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.3942, allocations: 29.7 kB / 0.5524 GB, free: 8.613 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.3943, allocations: 196.6 kB / 0.5526 GB, free: 8.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.645e-05/0.3944, allocations: 31.92 kB / 0.5526 GB, free: 8.402 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.323e-05/0.3944, allocations: 39.45 kB / 0.5527 GB, free: 8.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.3946, allocations: 331.1 kB / 0.553 GB, free: 8.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.314e-05/0.3947, allocations: 26.77 kB / 0.553 GB, free: 8.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.3948, allocations: 127.8 kB / 0.5531 GB, free: 7.887 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002342/0.395, allocations: 165 kB / 0.5533 GB, free: 7.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.395, allocations: 5.25 kB / 0.5533 GB, free: 7.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003629/0.3954, allocations: 186.3 kB / 0.5535 GB, free: 7.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.3954, allocations: 10.69 kB / 0.5535 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3954, allocations: 2.781 kB / 0.5535 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3955, allocations: 5.562 kB / 0.5535 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.3956, allocations: 39.83 kB / 0.5535 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.912e-05/0.3957, allocations: 12.7 kB / 0.5535 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3958, allocations: 8.594 kB / 0.5535 GB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.3958, allocations: 12.16 kB / 0.5536 GB, free: 7.578 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.0001595/0.3959, allocations: 150.1 kB / 0.5537 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.042e-05/0.396, allocations: 33.58 kB / 0.5537 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.3962, allocations: 94.05 kB / 0.5538 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3962, allocations: 1.25 kB / 0.5538 GB, free: 7.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3962, allocations: 3.984 kB / 0.5538 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3962, allocations: 0.75 kB / 0.5538 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005321/0.3967, allocations: 396.9 kB / 0.5542 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3967, allocations: 5.125 kB / 0.5542 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-05/0.3968, allocations: 13.53 kB / 0.5542 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.3968, allocations: 1.188 kB / 0.5542 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.3968, allocations: 5.359 kB / 0.5542 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.3968, allocations: 1.188 kB / 0.5542 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3968, allocations: 1.312 kB / 0.5542 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003025/0.3971, allocations: 232.1 kB / 0.5544 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.3972, allocations: 21.2 kB / 0.5545 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.3972, allocations: 2.156 kB / 0.5545 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-05/0.3973, allocations: 1.094 kB / 0.5545 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.442e-05/0.3973, allocations: 6.234 kB / 0.5545 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.3973, allocations: 7.5 kB / 0.5545 GB, free: 6.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001562/0.3975, allocations: 167.8 kB / 0.5546 GB, free: 6.625 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3975, allocations: 0 / 0.5546 GB, free: 6.625 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000313/0.3978, allocations: 39.28 kB / 0.5547 GB, free: 6.621 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.0005506/0.3984, allocations: 0.7674 MB / 0.5554 GB, free: 5.887 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001959/0.3986, allocations: 90.89 kB / 0.5555 GB, free: 5.844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3986, allocations: 0 / 0.5555 GB, free: 5.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.948e-05/0.3986, allocations: 23.72 kB / 0.5555 GB, free: 5.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.3991, allocations: 58.67 kB / 0.5556 GB, free: 5.809 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003567/0.4027, allocations: 2.311 MB / 0.5579 GB, free: 3.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.4032, allocations: 0.7584 MB / 0.5586 GB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.4033, allocations: 26.81 kB / 0.5586 GB, free: 3.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.4034, allocations: 74.91 kB / 0.5587 GB, free: 3.023 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4034, allocations: 4.938 kB / 0.5587 GB, free: 3.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.4299, allocations: 4.412 MB / 0.563 GB, free: 15.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.68, allocations: 3.938 kB / 0.563 GB, free: 15.2 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.891926628013607]