Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.001275/0.001275, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001474/0.001474, allocations: 218.7 kB / 24.52 MB, free: 3.91 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.474/1.474, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.1867/0.1867, allocations: 38.55 MB / 353.2 MB, free: 12.35 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.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.002032/0.002032, allocations: 59.91 kB / 493.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3318, allocations: 62.48 MB / 0.5427 GB, free: 280 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.008201/0.34, allocations: 4.311 MB / 0.5469 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.3436, allocations: 1.466 MB / 0.5483 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.3439, allocations: 19.94 kB / 0.5484 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.3449, allocations: 282.9 kB / 0.5486 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008502/0.3458, allocations: 283.7 kB / 0.5489 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008816/0.3467, allocations: 254.8 kB / 0.5491 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009936/0.3477, allocations: 0.6111 MB / 0.5497 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004379/0.3481, allocations: 196.8 kB / 0.5499 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005902/0.3487, allocations: 282 kB / 0.5502 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007572/0.3495, allocations: 402.8 kB / 0.5506 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.82e-05/0.3495, allocations: 38.34 kB / 0.5506 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006114/0.3502, allocations: 229.8 kB / 0.5508 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003577/0.3505, allocations: 241 kB / 0.5511 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003644/0.3509, allocations: 211.1 kB / 0.5513 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.352, allocations: 0.6828 MB / 0.5519 GB, free: 9.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.352, allocations: 1.469 kB / 0.5519 GB, free: 9.527 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.352, allocations: 0 / 0.5519 GB, free: 9.527 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.352, allocations: 0 / 0.5519 GB, free: 9.527 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.002015/0.3541, allocations: 0.7175 MB / 0.5526 GB, free: 8.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.3541, allocations: 14.02 kB / 0.5527 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.474e-05/0.3542, allocations: 10.75 kB / 0.5527 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.3543, allocations: 84.45 kB / 0.5527 GB, free: 8.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/0.3555, allocations: 129.9 kB / 0.5529 GB, free: 8.805 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009813/0.3565, allocations: 355.8 kB / 0.5532 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.752e-05/0.3565, allocations: 31.77 kB / 0.5532 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002227/0.3567, allocations: 45.56 kB / 0.5533 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.3583, allocations: 0.6998 MB / 0.554 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.076e-05/0.3583, allocations: 9.078 kB / 0.554 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-05/0.3584, allocations: 19.39 kB / 0.554 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003011/0.3587, allocations: 67.91 kB / 0.5541 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.3603, allocations: 0.6661 MB / 0.5547 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005698/0.366, allocations: 2.471 MB / 0.5571 GB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007126/0.3667, allocations: 293.3 kB / 0.5574 GB, free: 4.984 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004229/0.3672, allocations: 193.7 kB / 0.5576 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.271e-05/0.3672, allocations: 8 kB / 0.5576 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.276e-05/0.3673, allocations: 42.5 kB / 0.5576 GB, free: 4.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 1.538e-05/0.3673, allocations: 0 / 0.5576 GB, free: 4.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.003102/0.3704, allocations: 1.234 MB / 0.5588 GB, free: 3.465 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.3704, allocations: 77.11 kB / 0.5589 GB, free: 3.371 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004549/0.3709, allocations: 292.5 kB / 0.5592 GB, free: 3.078 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.3709, allocations: 33.7 kB / 0.5592 GB, free: 3.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.3712, allocations: 256.2 kB / 0.5595 GB, free: 2.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.3714, allocations: 154.8 kB / 0.5596 GB, free: 2.633 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/0.3716, allocations: 82.12 kB / 0.5597 GB, free: 2.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.3718, allocations: 350.7 kB / 0.56 GB, free: 2.195 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004211/0.3722, allocations: 188.8 kB / 0.5602 GB, free: 2.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005991/0.3728, allocations: 328.9 kB / 0.5605 GB, free: 1.629 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.3739, allocations: 0.5429 MB / 0.5611 GB, free: 1.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3739, allocations: 4 kB / 0.5611 GB, free: 1.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00192/0.3758, allocations: 0.6823 MB / 0.5617 GB, free: 336 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.3758, allocations: 12.03 kB / 0.5617 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001264/0.3771, allocations: 483.5 kB / 0.5622 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006233/0.3777, allocations: 117.5 kB / 0.5623 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.3782, allocations: 75.89 kB / 0.5624 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004278/0.3825, allocations: 3.059 MB / 0.5654 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/0.3829, allocations: 23.92 kB / 0.5654 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.452e-05/0.383, allocations: 16 kB / 0.5654 GB, free: 12.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003924/0.3834, allocations: 209.7 kB / 0.5656 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.3836, allocations: 39.89 kB / 0.5656 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.3847, allocations: 480.8 kB / 0.5661 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.661e-05/0.3847, allocations: 15.97 kB / 0.5661 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3847, allocations: 3.938 kB / 0.5661 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.906e-06/0.3847, allocations: 4 kB / 0.5661 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002237/0.387, allocations: 0.9482 MB / 0.5671 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.387, allocations: 0 / 0.5671 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005667/0.3875, allocations: 71.89 kB / 0.5671 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3876, allocations: 4.062 kB / 0.5671 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.3876, allocations: 15.92 kB / 0.5671 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.3876, allocations: 7.938 kB / 0.5671 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.3876, allocations: 0 / 0.5671 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.3891, allocations: 0.7363 MB / 0.5679 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002103/0.3893, allocations: 71.66 kB / 0.5679 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.25e-05/0.3894, allocations: 11.97 kB / 0.5679 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.3897, allocations: 15.98 kB / 0.568 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.148e-05/0.3898, allocations: 23.91 kB / 0.568 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/0.3899, allocations: 11.98 kB / 0.568 GB, free: 9.559 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003056/0.3902, allocations: 207.1 kB / 0.5682 GB, free: 9.359 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3902, allocations: 0 / 0.5682 GB, free: 9.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008825/0.391, allocations: 115.9 kB / 0.5683 GB, free: 9.246 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.002081/0.3931, allocations: 1.32 MB / 0.5696 GB, free: 7.887 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.3947, allocations: 0.6866 MB / 0.5703 GB, free: 7.176 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3947, allocations: 0 / 0.5703 GB, free: 7.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.3951, allocations: 192.2 kB / 0.5704 GB, free: 6.988 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007971/0.3959, allocations: 67.48 kB / 0.5705 GB, free: 6.922 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008814/0.4047, allocations: 4.411 MB / 0.5748 GB, free: 2.301 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.405, allocations: 266.2 kB / 0.5751 GB, free: 2.016 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003039/0.4054, allocations: 111.2 kB / 0.5752 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002239/0.4056, allocations: 143.4 kB / 0.5753 GB, free: 1.766 MB / 414.1 MB Notification: Performance of SimCode: time 1.213e-06/0.4056, allocations: 0 / 0.5753 GB, free: 1.766 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03512/0.4407, allocations: 8.726 MB / 0.5838 GB, free: 9.215 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.75, allocations: 14.81 kB / 0.5838 GB, free: 9.203 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Source_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.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: 15.748673751018941]