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.001701/0.001701, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001962/0.001962, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 8 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.1801/0.1801, allocations: 38.52 MB / 352.5 MB, free: 12.52 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_PQsource",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.002118/0.002118, allocations: 63.89 kB / 492.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2887, allocations: 62.47 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.007133/0.2958, allocations: 4.732 MB / 0.5466 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.2982, allocations: 1.365 MB / 0.548 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002196/0.2985, allocations: 21.03 kB / 0.548 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.2997, allocations: 421.2 kB / 0.5484 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005941/0.3003, allocations: 258.2 kB / 0.5486 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.3008, allocations: 159.7 kB / 0.5488 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000702/0.3015, allocations: 0.5672 MB / 0.5493 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004238/0.3019, allocations: 226.3 kB / 0.5495 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004907/0.3024, allocations: 276.1 kB / 0.5498 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005087/0.3029, allocations: 300.1 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.386e-05/0.303, allocations: 30.5 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003471/0.3033, allocations: 139.1 kB / 0.5503 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002262/0.3036, allocations: 193.9 kB / 0.5504 GB, free: 10 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.3038, allocations: 214.5 kB / 0.5506 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007127/0.3045, allocations: 0.5296 MB / 0.5512 GB, free: 9.516 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3045, allocations: 0 / 0.5512 GB, free: 9.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3045, allocations: 0 / 0.5512 GB, free: 9.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.3045, allocations: 0 / 0.5512 GB, free: 9.516 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.001231/0.3058, allocations: 0.6326 MB / 0.5518 GB, free: 8.996 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.3058, allocations: 14.23 kB / 0.5518 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.928e-05/0.3059, allocations: 71.41 kB / 0.5519 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005926/0.3065, allocations: 96.83 kB / 0.552 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007007/0.3072, allocations: 343.6 kB / 0.5523 GB, free: 8.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/0.3072, allocations: 39.53 kB / 0.5523 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.3074, allocations: 43.91 kB / 0.5524 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007085/0.3081, allocations: 475.3 kB / 0.5528 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.3081, allocations: 1.094 kB / 0.5528 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.3081, allocations: 22.95 kB / 0.5528 GB, free: 8.234 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/0.3082, allocations: 28.78 kB / 0.5529 GB, free: 8.227 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000577/0.3088, allocations: 353.4 kB / 0.5532 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002305/0.3111, allocations: 1.657 MB / 0.5548 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.3114, allocations: 148.4 kB / 0.555 GB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.3116, allocations: 116.2 kB / 0.5551 GB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.3116, allocations: 2.281 kB / 0.5551 GB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.3116, allocations: 35.62 kB / 0.5551 GB, free: 6.453 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.764e-06/0.3116, allocations: 4 kB / 0.5551 GB, free: 6.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001442/0.3131, allocations: 0.7363 MB / 0.5558 GB, free: 5.949 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.3131, allocations: 79.52 kB / 0.5559 GB, free: 5.855 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.3135, allocations: 313.2 kB / 0.5562 GB, free: 5.645 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.3135, allocations: 29.83 kB / 0.5562 GB, free: 5.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.3137, allocations: 256 kB / 0.5565 GB, free: 5.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.381e-05/0.3137, allocations: 75.42 kB / 0.5565 GB, free: 5.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.182e-05/0.3138, allocations: 61.92 kB / 0.5566 GB, free: 5.211 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.314, allocations: 338.8 kB / 0.5569 GB, free: 4.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.3141, allocations: 100.2 kB / 0.557 GB, free: 4.773 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002433/0.3144, allocations: 201.3 kB / 0.5572 GB, free: 4.531 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004301/0.3148, allocations: 327.4 kB / 0.5575 GB, free: 4.168 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3148, allocations: 4 kB / 0.5575 GB, free: 4.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009042/0.3157, allocations: 469.8 kB / 0.558 GB, free: 3.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.3157, allocations: 4 kB / 0.558 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006278/0.3164, allocations: 312.7 kB / 0.5583 GB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004876/0.3168, allocations: 140.9 kB / 0.5584 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.317, allocations: 51.92 kB / 0.5585 GB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002942/0.32, allocations: 2.335 MB / 0.5607 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.3202, allocations: 11.98 kB / 0.5608 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.3202, allocations: 16 kB / 0.5608 GB, free: 0.7188 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.0002741/0.3205, allocations: 185.7 kB / 0.561 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.398e-05/0.3206, allocations: 35.75 kB / 0.561 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004822/0.321, allocations: 269.3 kB / 0.5612 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.321, allocations: 4 kB / 0.5612 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.321, allocations: 0 / 0.5612 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3211, allocations: 0 / 0.5612 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001242/0.3223, allocations: 0.7068 MB / 0.5619 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.3223, allocations: 8.047 kB / 0.5619 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/0.3225, allocations: 35.98 kB / 0.562 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001115/0.3226, allocations: 36.83 kB / 0.562 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.3227, allocations: 8 kB / 0.562 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3227, allocations: 0 / 0.562 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3227, allocations: 3.938 kB / 0.562 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005756/0.3232, allocations: 441.2 kB / 0.5624 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.782e-05/0.3233, allocations: 23.81 kB / 0.5625 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.395e-05/0.3233, allocations: 12.03 kB / 0.5625 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.3235, allocations: 8 kB / 0.5625 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.3235, allocations: 19.84 kB / 0.5625 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.3235, allocations: 4 kB / 0.5625 GB, free: 14.83 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002299/0.3238, allocations: 231 kB / 0.5627 GB, free: 14.6 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3238, allocations: 0 / 0.5627 GB, free: 14.6 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004666/0.3242, allocations: 84 kB / 0.5628 GB, free: 14.52 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.0008842/0.3251, allocations: 0.977 MB / 0.5638 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007198/0.3258, allocations: 406.1 kB / 0.5642 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3258, allocations: 4.125 kB / 0.5642 GB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.326, allocations: 96.12 kB / 0.5642 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004722/0.3265, allocations: 76.05 kB / 0.5643 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004692/0.3312, allocations: 3.571 MB / 0.5678 GB, free: 9.164 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.3317, allocations: 0.838 MB / 0.5686 GB, free: 8.297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.3318, allocations: 70.86 kB / 0.5687 GB, free: 8.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.332, allocations: 127.4 kB / 0.5688 GB, free: 8.105 MB / 414.1 MB Notification: Performance of SimCode: time 5.92e-07/0.332, allocations: 0 / 0.5688 GB, free: 8.105 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03995/0.372, allocations: 7.647 MB / 0.5763 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.45, allocations: 9.078 kB / 0.5763 GB, free: 0.5859 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: 16.232923723058775]