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.001412/0.001412, 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.001421/0.001421, allocations: 206.1 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.473/1.473, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.52 MB / 353.2 MB, free: 12.56 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.001999/0.001999, allocations: 66.56 kB / 493.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.317, allocations: 62.47 MB / 0.5428 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006649/0.3236, allocations: 4.568 MB / 0.5472 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002996/0.3266, allocations: 1.585 MB / 0.5488 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002599/0.3269, allocations: 24 kB / 0.5488 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009545/0.3278, allocations: 298.8 kB / 0.5491 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007081/0.3285, allocations: 279.2 kB / 0.5494 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007584/0.3293, allocations: 259 kB / 0.5496 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007636/0.3301, allocations: 0.6114 MB / 0.5502 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.3304, allocations: 198 kB / 0.5504 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004966/0.3309, allocations: 280.6 kB / 0.5507 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006281/0.3315, allocations: 399.3 kB / 0.551 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.135e-05/0.3316, allocations: 39.62 kB / 0.5511 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005707/0.3322, allocations: 253.3 kB / 0.5513 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002698/0.3325, allocations: 239.4 kB / 0.5515 GB, free: 9.824 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000318/0.3328, allocations: 251.4 kB / 0.5518 GB, free: 9.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.3339, allocations: 0.6786 MB / 0.5524 GB, free: 9.219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3339, allocations: 0 / 0.5524 GB, free: 9.219 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3339, allocations: 0 / 0.5524 GB, free: 9.219 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.073e-05/0.3339, allocations: 5.062 kB / 0.5524 GB, free: 9.215 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.00173/0.3356, allocations: 0.7154 MB / 0.5531 GB, free: 8.641 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.3357, allocations: 13.17 kB / 0.5532 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.617e-05/0.3357, allocations: 11.72 kB / 0.5532 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.3358, allocations: 87.88 kB / 0.5533 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008683/0.3367, allocations: 133.4 kB / 0.5534 GB, free: 8.488 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007632/0.3374, allocations: 351.9 kB / 0.5537 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.3375, allocations: 31.08 kB / 0.5537 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.3376, allocations: 49.17 kB / 0.5538 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.3388, allocations: 0.6976 MB / 0.5545 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.3388, allocations: 1.188 kB / 0.5545 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.995e-05/0.3388, allocations: 15.47 kB / 0.5545 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000234/0.3391, allocations: 67.36 kB / 0.5546 GB, free: 7.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.3404, allocations: 0.6656 MB / 0.5552 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004391/0.3448, allocations: 2.569 MB / 0.5577 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000605/0.3454, allocations: 305.2 kB / 0.558 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.3457, allocations: 201.6 kB / 0.5582 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.3457, allocations: 3.984 kB / 0.5582 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3457, allocations: 34.56 kB / 0.5582 GB, free: 4.398 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.584e-06/0.3457, allocations: 0 / 0.5582 GB, free: 4.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002412/0.3482, allocations: 1.234 MB / 0.5594 GB, free: 3.133 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.067e-05/0.3483, allocations: 85.03 kB / 0.5595 GB, free: 3.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003854/0.3486, allocations: 292.5 kB / 0.5598 GB, free: 2.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.3487, allocations: 33.7 kB / 0.5598 GB, free: 2.699 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.3489, allocations: 256.2 kB / 0.5601 GB, free: 2.445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.3491, allocations: 142.8 kB / 0.5602 GB, free: 2.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.3492, allocations: 90.2 kB / 0.5603 GB, free: 2.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.3494, allocations: 350.7 kB / 0.5606 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002939/0.3497, allocations: 180.8 kB / 0.5608 GB, free: 1.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004174/0.3501, allocations: 328.9 kB / 0.5611 GB, free: 1.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007362/0.3508, allocations: 0.5468 MB / 0.5617 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3508, allocations: 3.938 kB / 0.5617 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001407/0.3522, allocations: 0.6819 MB / 0.5623 GB, free: 15.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.3523, allocations: 8.562 kB / 0.5623 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009068/0.3532, allocations: 491.4 kB / 0.5628 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005142/0.3537, allocations: 117.6 kB / 0.5629 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.354, allocations: 79.89 kB / 0.563 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003297/0.3573, allocations: 3.067 MB / 0.566 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/0.3577, allocations: 23.92 kB / 0.566 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.929e-05/0.3578, allocations: 20 kB / 0.566 GB, free: 11.95 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.0003205/0.3581, allocations: 213.7 kB / 0.5662 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.3582, allocations: 35.77 kB / 0.5663 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008144/0.359, allocations: 480.5 kB / 0.5667 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.98e-05/0.359, allocations: 15.98 kB / 0.5667 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.359, allocations: 3.938 kB / 0.5667 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.359, allocations: 0 / 0.5667 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.3607, allocations: 0.9833 MB / 0.5677 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.3607, allocations: 3.984 kB / 0.5677 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003877/0.3611, allocations: 75.83 kB / 0.5678 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3611, allocations: 0 / 0.5678 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.3611, allocations: 8 kB / 0.5678 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.155e-06/0.3611, allocations: 4 kB / 0.5678 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3611, allocations: 4.062 kB / 0.5678 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.3622, allocations: 0.7402 MB / 0.5685 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.3624, allocations: 71.66 kB / 0.5686 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.203e-05/0.3624, allocations: 19.92 kB / 0.5686 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.3627, allocations: 15.98 kB / 0.5686 GB, free: 9.203 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.998e-05/0.3627, allocations: 19.97 kB / 0.5686 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.554e-05/0.3628, allocations: 15.98 kB / 0.5687 GB, free: 9.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000235/0.363, allocations: 199.1 kB / 0.5688 GB, free: 8.977 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.363, allocations: 0 / 0.5688 GB, free: 8.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005978/0.3636, allocations: 112 kB / 0.5689 GB, free: 8.867 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.001539/0.3651, allocations: 1.32 MB / 0.5702 GB, free: 7.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.3663, allocations: 0.6827 MB / 0.5709 GB, free: 6.801 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3663, allocations: 0 / 0.5709 GB, free: 6.801 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003255/0.3667, allocations: 196.2 kB / 0.5711 GB, free: 6.609 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005788/0.3672, allocations: 60.09 kB / 0.5711 GB, free: 6.551 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006414/0.3737, allocations: 4.412 MB / 0.5755 GB, free: 1.922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005547/0.3742, allocations: 0.8742 MB / 0.5763 GB, free: 1.016 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000313/0.3745, allocations: 103.2 kB / 0.5764 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.3747, allocations: 147.4 kB / 0.5766 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3747, allocations: 0 / 0.5766 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03608/0.4108, allocations: 8.688 MB / 0.585 GB, free: 8.227 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.73, allocations: 10.81 kB / 0.585 GB, free: 8.219 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.740470025979448]