Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.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.001736/0.001736, 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.002372/0.002372, 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.498/1.498, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.1872/0.1872, allocations: 38.52 MB / 353.2 MB, free: 12.57 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.Generation.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",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.002882/0.002882, allocations: 75.3 kB / 493.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3498, allocations: 62.46 MB / 0.5428 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.006852/0.3566, allocations: 4.723 MB / 0.5474 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002819/0.3594, allocations: 1.368 MB / 0.5487 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002559/0.3597, allocations: 20.84 kB / 0.5487 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.361, allocations: 414.8 kB / 0.5491 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007576/0.3617, allocations: 252.4 kB / 0.5494 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006408/0.3624, allocations: 168.1 kB / 0.5495 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007771/0.3632, allocations: 0.5677 MB / 0.5501 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004068/0.3636, allocations: 234.4 kB / 0.5503 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000526/0.3641, allocations: 268.1 kB / 0.5506 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005237/0.3646, allocations: 300.9 kB / 0.5509 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.287e-05/0.3647, allocations: 29.66 kB / 0.5509 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003232/0.365, allocations: 135.7 kB / 0.551 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002175/0.3652, allocations: 200.4 kB / 0.5512 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002571/0.3655, allocations: 216 kB / 0.5514 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007448/0.3662, allocations: 0.5242 MB / 0.5519 GB, free: 9.707 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3662, allocations: 1.5 kB / 0.5519 GB, free: 9.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3662, allocations: 0 / 0.5519 GB, free: 9.707 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.3662, allocations: 0 / 0.5519 GB, free: 9.707 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001389/0.3676, allocations: 0.63 MB / 0.5525 GB, free: 9.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.3677, allocations: 17.58 kB / 0.5526 GB, free: 9.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.161e-05/0.3677, allocations: 13.81 kB / 0.5526 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.3678, allocations: 75.75 kB / 0.5526 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00067/0.3685, allocations: 92.33 kB / 0.5527 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008181/0.3693, allocations: 344.5 kB / 0.5531 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.3693, allocations: 30.53 kB / 0.5531 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.3695, allocations: 43.7 kB / 0.5531 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008657/0.3704, allocations: 487.4 kB / 0.5536 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.3704, allocations: 1.25 kB / 0.5536 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.3704, allocations: 15.59 kB / 0.5536 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.3705, allocations: 23.89 kB / 0.5536 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000574/0.3711, allocations: 353.2 kB / 0.554 GB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.3736, allocations: 1.662 MB / 0.5556 GB, free: 6.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003391/0.3739, allocations: 147.5 kB / 0.5557 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.3741, allocations: 105.6 kB / 0.5558 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.3741, allocations: 2.5 kB / 0.5558 GB, free: 6.691 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.3741, allocations: 43.44 kB / 0.5559 GB, free: 6.641 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 2.324e-06/0.3741, allocations: 1.188 kB / 0.5559 GB, free: 6.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001757/0.3759, allocations: 0.7341 MB / 0.5566 GB, free: 6.145 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.803e-05/0.376, allocations: 87.42 kB / 0.5567 GB, free: 6.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003982/0.3764, allocations: 314.6 kB / 0.557 GB, free: 5.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.3764, allocations: 25.7 kB / 0.557 GB, free: 5.789 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.3766, allocations: 264 kB / 0.5573 GB, free: 5.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.76e-05/0.3767, allocations: 67.42 kB / 0.5573 GB, free: 5.457 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.3768, allocations: 57.98 kB / 0.5574 GB, free: 5.391 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.377, allocations: 342.8 kB / 0.5577 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.3771, allocations: 100.2 kB / 0.5578 GB, free: 4.949 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002389/0.3774, allocations: 197.4 kB / 0.558 GB, free: 4.711 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004767/0.3778, allocations: 331.4 kB / 0.5583 GB, free: 4.344 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3778, allocations: 0 / 0.5583 GB, free: 4.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00098/0.3788, allocations: 473.5 kB / 0.5588 GB, free: 3.871 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3788, allocations: 7.984 kB / 0.5588 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006398/0.3795, allocations: 313.1 kB / 0.5591 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005321/0.38, allocations: 140.7 kB / 0.5592 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.3802, allocations: 51.92 kB / 0.5592 GB, free: 3.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003174/0.3834, allocations: 2.335 MB / 0.5615 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.3837, allocations: 19.98 kB / 0.5615 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.3838, allocations: 12 kB / 0.5616 GB, free: 0.8867 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0003645/0.3841, allocations: 189.7 kB / 0.5617 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.967e-05/0.3842, allocations: 35.75 kB / 0.5618 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005168/0.3847, allocations: 261.3 kB / 0.562 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3847, allocations: 4 kB / 0.562 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.3847, allocations: 0 / 0.562 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3847, allocations: 0 / 0.562 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/0.3861, allocations: 0.714 MB / 0.5627 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3861, allocations: 0 / 0.5627 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000219/0.3864, allocations: 39.97 kB / 0.5628 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.3865, allocations: 36.83 kB / 0.5628 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.3865, allocations: 4 kB / 0.5628 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.3865, allocations: 7.938 kB / 0.5628 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3865, allocations: 0 / 0.5628 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006308/0.3871, allocations: 445.1 kB / 0.5632 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.195e-05/0.3872, allocations: 27.81 kB / 0.5633 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.3873, allocations: 8.031 kB / 0.5633 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.3874, allocations: 8 kB / 0.5633 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.237e-05/0.3875, allocations: 19.91 kB / 0.5633 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.3875, allocations: 4 kB / 0.5633 GB, free: 15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002667/0.3877, allocations: 223 kB / 0.5635 GB, free: 14.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3877, allocations: 0 / 0.5635 GB, free: 14.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005332/0.3883, allocations: 88 kB / 0.5636 GB, free: 14.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009891/0.3893, allocations: 0.9771 MB / 0.5645 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008534/0.3901, allocations: 405.4 kB / 0.5649 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3901, allocations: 0 / 0.5649 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001985/0.3903, allocations: 92.75 kB / 0.565 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005169/0.3908, allocations: 76.77 kB / 0.5651 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005376/0.3962, allocations: 3.579 MB / 0.5686 GB, free: 9.336 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.3969, allocations: 0.8457 MB / 0.5694 GB, free: 8.461 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002565/0.3971, allocations: 62.92 kB / 0.5695 GB, free: 8.398 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002435/0.3974, allocations: 127.4 kB / 0.5696 GB, free: 8.273 MB / 414.1 MB Notification: Performance of SimCode: time 1.843e-06/0.3974, allocations: 0 / 0.5696 GB, free: 8.273 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03667/0.4341, allocations: 7.679 MB / 0.5771 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.27, allocations: 6.375 kB / 0.5771 GB, free: 0.7422 MB / 414.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PQsource.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PQsource.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: 17.35088389198063]