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.001316/0.001316, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001518/0.001518, allocations: 214 kB / 23.73 MB, free: 4.16 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.438/1.438, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.1903/0.1903, allocations: 38.55 MB / 352.5 MB, free: 12.31 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_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.002104/0.002104, allocations: 64.19 kB / 492.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3084, allocations: 62.46 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.006407/0.3148, allocations: 4.323 MB / 0.5462 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.3177, allocations: 1.464 MB / 0.5476 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000292/0.318, allocations: 20.19 kB / 0.5476 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.3191, allocations: 291.2 kB / 0.5479 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007411/0.3199, allocations: 283.8 kB / 0.5482 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007081/0.3206, allocations: 251.3 kB / 0.5484 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007826/0.3214, allocations: 0.6071 MB / 0.549 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003539/0.3217, allocations: 200.7 kB / 0.5492 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004939/0.3222, allocations: 285.7 kB / 0.5495 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000556/0.3228, allocations: 382.6 kB / 0.5498 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-05/0.3228, allocations: 39.06 kB / 0.5499 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005083/0.3233, allocations: 230 kB / 0.5501 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.3236, allocations: 235.2 kB / 0.5503 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000255/0.3238, allocations: 212 kB / 0.5505 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008093/0.3247, allocations: 0.6834 MB / 0.5512 GB, free: 9.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3247, allocations: 4 kB / 0.5512 GB, free: 9.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3247, allocations: 5.469 kB / 0.5512 GB, free: 9.512 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.3247, allocations: 0 / 0.5512 GB, free: 9.512 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.001502/0.3262, allocations: 0.7056 MB / 0.5519 GB, free: 8.945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3262, allocations: 13.55 kB / 0.5519 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001083/0.3263, allocations: 88.09 kB / 0.552 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007714/0.3271, allocations: 128.8 kB / 0.5521 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008137/0.3279, allocations: 361.7 kB / 0.5524 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.966e-05/0.3279, allocations: 35.11 kB / 0.5525 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/0.3281, allocations: 45.39 kB / 0.5525 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.3293, allocations: 0.6925 MB / 0.5532 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.3294, allocations: 1.094 kB / 0.5532 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.715e-05/0.3294, allocations: 20.2 kB / 0.5532 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002301/0.3296, allocations: 67.14 kB / 0.5533 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.3308, allocations: 0.67 MB / 0.5539 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003896/0.3347, allocations: 2.473 MB / 0.5563 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004961/0.3352, allocations: 293.3 kB / 0.5566 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000296/0.3355, allocations: 197.7 kB / 0.5568 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.265e-05/0.3355, allocations: 7.984 kB / 0.5568 GB, free: 4.758 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.3355, allocations: 34.5 kB / 0.5568 GB, free: 4.715 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.795e-06/0.3355, allocations: 0 / 0.5568 GB, free: 4.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.002073/0.3376, allocations: 1.226 MB / 0.558 GB, free: 3.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.3377, allocations: 81.11 kB / 0.5581 GB, free: 3.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003182/0.338, allocations: 304.3 kB / 0.5584 GB, free: 3.043 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.338, allocations: 37.69 kB / 0.5584 GB, free: 3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.3382, allocations: 256.4 kB / 0.5587 GB, free: 2.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.3383, allocations: 146.8 kB / 0.5588 GB, free: 2.602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.3385, allocations: 82.09 kB / 0.5589 GB, free: 2.516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.3386, allocations: 350.7 kB / 0.5592 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002928/0.3389, allocations: 188.8 kB / 0.5594 GB, free: 1.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004038/0.3393, allocations: 328.9 kB / 0.5597 GB, free: 1.598 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007491/0.3401, allocations: 0.5507 MB / 0.5603 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3401, allocations: 0 / 0.5603 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001285/0.3414, allocations: 0.6822 MB / 0.5609 GB, free: 300 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3414, allocations: 8 kB / 0.5609 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008825/0.3423, allocations: 487.5 kB / 0.5614 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000444/0.3427, allocations: 113.6 kB / 0.5615 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.343, allocations: 79.88 kB / 0.5616 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003147/0.3462, allocations: 3.059 MB / 0.5646 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.3465, allocations: 23.91 kB / 0.5646 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.284e-05/0.3465, allocations: 20 kB / 0.5646 GB, free: 12.27 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.000302/0.3468, allocations: 217.7 kB / 0.5648 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.3469, allocations: 39.75 kB / 0.5649 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008092/0.3477, allocations: 472.7 kB / 0.5653 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-05/0.3478, allocations: 11.98 kB / 0.5653 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3478, allocations: 3.938 kB / 0.5653 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3478, allocations: 3.984 kB / 0.5653 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.3494, allocations: 0.9483 MB / 0.5663 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3494, allocations: 0 / 0.5663 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003465/0.3497, allocations: 71.95 kB / 0.5663 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.708e-06/0.3497, allocations: 7.938 kB / 0.5663 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.3498, allocations: 8 kB / 0.5664 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3498, allocations: 0 / 0.5664 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.3498, allocations: 7.938 kB / 0.5664 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.3509, allocations: 0.7402 MB / 0.5671 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.3511, allocations: 63.72 kB / 0.5671 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.856e-05/0.3511, allocations: 8 kB / 0.5672 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.3513, allocations: 23.91 kB / 0.5672 GB, free: 9.562 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.256e-05/0.3514, allocations: 27.95 kB / 0.5672 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.109e-05/0.3514, allocations: 12 kB / 0.5672 GB, free: 9.523 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002218/0.3516, allocations: 207.1 kB / 0.5674 GB, free: 9.324 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3516, allocations: 3.938 kB / 0.5674 GB, free: 9.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005497/0.3522, allocations: 111.9 kB / 0.5675 GB, free: 9.211 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.00154/0.3537, allocations: 1.32 MB / 0.5688 GB, free: 7.852 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.3549, allocations: 0.6864 MB / 0.5695 GB, free: 7.141 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3549, allocations: 3.938 kB / 0.5695 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.3552, allocations: 192.3 kB / 0.5697 GB, free: 6.949 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005374/0.3557, allocations: 71.67 kB / 0.5697 GB, free: 6.879 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006283/0.362, allocations: 4.4 MB / 0.574 GB, free: 2.262 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.3624, allocations: 274.2 kB / 0.5743 GB, free: 1.969 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003164/0.3627, allocations: 103.2 kB / 0.5744 GB, free: 1.867 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002448/0.3629, allocations: 151.4 kB / 0.5745 GB, free: 1.719 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3629, allocations: 0 / 0.5745 GB, free: 1.719 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0474/0.4103, allocations: 8.904 MB / 0.5832 GB, free: 8.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.29, allocations: 3.984 kB / 0.5832 GB, free: 8.977 MB / 430.1 MB " [Timeout remaining time 648] (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.104182882234454]