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.001385/0.001385, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001468/0.001468, allocations: 211 kB / 23.73 MB, free: 4.387 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.497/1.497, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.1968/0.1968, allocations: 38.56 MB / 352.5 MB, free: 12.29 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",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.002286/0.002286, allocations: 59.91 kB / 492.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3568, allocations: 62.47 MB / 0.5419 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005948/0.3628, allocations: 3.865 MB / 0.5457 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.3644, allocations: 0.8494 MB / 0.5466 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.3645, allocations: 15.03 kB / 0.5466 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.3647, allocations: 51.45 kB / 0.5466 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004546/0.3651, allocations: 164.8 kB / 0.5468 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001888/0.3653, allocations: 86.98 kB / 0.5469 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004394/0.3658, allocations: 372.2 kB / 0.5472 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.3659, allocations: 57.98 kB / 0.5473 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003148/0.3662, allocations: 186.6 kB / 0.5474 GB, free: 12 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002772/0.3665, allocations: 160.5 kB / 0.5476 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.935e-05/0.3666, allocations: 16.78 kB / 0.5476 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.094e-05/0.3666, allocations: 16.69 kB / 0.5476 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.3667, allocations: 83.06 kB / 0.5477 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.3668, allocations: 95.61 kB / 0.5478 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.3672, allocations: 270.4 kB / 0.5481 GB, free: 11.62 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3672, allocations: 0 / 0.5481 GB, free: 11.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.3672, allocations: 1.125 kB / 0.5481 GB, free: 11.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.3672, allocations: 7.938 kB / 0.5481 GB, free: 11.62 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.0008934/0.3681, allocations: 499.7 kB / 0.5485 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3681, allocations: 17.23 kB / 0.5486 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.345e-05/0.3682, allocations: 54.11 kB / 0.5486 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.329e-05/0.3683, allocations: 39.34 kB / 0.5486 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005312/0.3688, allocations: 266.9 kB / 0.5489 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.3688, allocations: 12.66 kB / 0.5489 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/0.3689, allocations: 21.03 kB / 0.5489 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004062/0.3693, allocations: 269.9 kB / 0.5492 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.3693, allocations: 4 kB / 0.5492 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.931e-05/0.3693, allocations: 7.125 kB / 0.5492 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3693, allocations: 4.844 kB / 0.5492 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002768/0.3696, allocations: 167.7 kB / 0.5494 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.371, allocations: 1.1 MB / 0.5504 GB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.3712, allocations: 77.27 kB / 0.5505 GB, free: 9.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.722e-05/0.3712, allocations: 31.94 kB / 0.5505 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.326e-05/0.3713, allocations: 1.406 kB / 0.5505 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.3713, allocations: 36.84 kB / 0.5506 GB, free: 9.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3713, allocations: 0 / 0.5506 GB, free: 9.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007073/0.372, allocations: 337.6 kB / 0.5509 GB, free: 9.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.3721, allocations: 82.42 kB / 0.551 GB, free: 9.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.3723, allocations: 250.5 kB / 0.5512 GB, free: 8.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.3723, allocations: 29.83 kB / 0.5512 GB, free: 8.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.3725, allocations: 200.4 kB / 0.5514 GB, free: 8.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.3725, allocations: 31.88 kB / 0.5515 GB, free: 8.594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.3726, allocations: 39.73 kB / 0.5515 GB, free: 8.562 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3727, allocations: 331.3 kB / 0.5518 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.108e-05/0.3728, allocations: 24.22 kB / 0.5518 GB, free: 8.227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.3729, allocations: 127.2 kB / 0.552 GB, free: 8.082 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.3731, allocations: 165.1 kB / 0.5521 GB, free: 7.918 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3731, allocations: 1.375 kB / 0.5521 GB, free: 7.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002958/0.3734, allocations: 186.2 kB / 0.5523 GB, free: 7.809 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3735, allocations: 10.44 kB / 0.5523 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3735, allocations: 3.094 kB / 0.5523 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3735, allocations: 8.312 kB / 0.5523 GB, free: 7.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.3736, allocations: 40.42 kB / 0.5524 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.3736, allocations: 12.53 kB / 0.5524 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.3738, allocations: 8.531 kB / 0.5524 GB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.315e-05/0.3738, allocations: 8.125 kB / 0.5524 GB, free: 7.781 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.0001493/0.3739, allocations: 151.2 kB / 0.5525 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.624e-05/0.374, allocations: 25.14 kB / 0.5526 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001718/0.3741, allocations: 94.38 kB / 0.5526 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3741, allocations: 5.375 kB / 0.5527 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3741, allocations: 0 / 0.5527 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3741, allocations: 1.156 kB / 0.5527 GB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004847/0.3746, allocations: 389.4 kB / 0.553 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3746, allocations: 4.031 kB / 0.553 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.3747, allocations: 22.73 kB / 0.5531 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3747, allocations: 1.062 kB / 0.5531 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3748, allocations: 1.469 kB / 0.5531 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.3748, allocations: 0.9062 kB / 0.5531 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3748, allocations: 1.188 kB / 0.5531 GB, free: 7.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000273/0.375, allocations: 237.6 kB / 0.5533 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.3751, allocations: 18.08 kB / 0.5533 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.083e-05/0.3751, allocations: 5.172 kB / 0.5533 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.175e-05/0.3752, allocations: 4.75 kB / 0.5533 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.576e-05/0.3752, allocations: 7.375 kB / 0.5533 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.3752, allocations: 3.531 kB / 0.5533 GB, free: 6.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001733/0.3754, allocations: 172.1 kB / 0.5535 GB, free: 6.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3754, allocations: 0 / 0.5535 GB, free: 6.832 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.3757, allocations: 38.88 kB / 0.5535 GB, free: 6.828 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.0005756/0.3763, allocations: 0.7615 MB / 0.5543 GB, free: 6.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001825/0.3765, allocations: 87 kB / 0.5543 GB, free: 6.062 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3765, allocations: 1.094 kB / 0.5543 GB, free: 6.062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.148e-05/0.3765, allocations: 27.27 kB / 0.5544 GB, free: 6.051 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004699/0.377, allocations: 55.28 kB / 0.5544 GB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.3798, allocations: 2.315 MB / 0.5567 GB, free: 4.066 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001658/0.38, allocations: 145.9 kB / 0.5568 GB, free: 3.957 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001161/0.3801, allocations: 31.8 kB / 0.5569 GB, free: 3.941 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.3802, allocations: 75 kB / 0.5569 GB, free: 3.879 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3802, allocations: 7.938 kB / 0.5569 GB, free: 3.871 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04145/0.4217, allocations: 4.848 MB / 0.5617 GB, free: 15.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.63, allocations: 11.8 kB / 0.5617 GB, free: 15.47 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.557659227401018]