Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.001777/0.001777, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002282/0.002282, allocations: 212.4 kB / 23.73 MB, free: 4.387 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.531/1.531, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1869/0.1869, allocations: 38.54 MB / 352.5 MB, free: 12.33 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.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.00206/0.00206, allocations: 71.89 kB / 492.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3714, allocations: 62.45 MB / 0.5419 GB, free: 264 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008545/0.38, allocations: 5.835 MB / 0.5476 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003656/0.3836, allocations: 1.362 MB / 0.549 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006608/0.3843, allocations: 35.59 kB / 0.549 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006423/0.3849, allocations: 140.1 kB / 0.5491 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001103/0.386, allocations: 400.1 kB / 0.5495 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006315/0.3867, allocations: 191.2 kB / 0.5497 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001473/0.3881, allocations: 0.9161 MB / 0.5506 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003605/0.3885, allocations: 170.2 kB / 0.5508 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008705/0.3894, allocations: 424.3 kB / 0.5512 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000804/0.3902, allocations: 477.7 kB / 0.5516 GB, free: 9.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.381e-05/0.3903, allocations: 51.47 kB / 0.5517 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.3904, allocations: 50.22 kB / 0.5517 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003146/0.3907, allocations: 263.7 kB / 0.552 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003335/0.3911, allocations: 257.2 kB / 0.5522 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009351/0.392, allocations: 0.6998 MB / 0.5529 GB, free: 8.234 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.392, allocations: 0 / 0.5529 GB, free: 8.234 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.392, allocations: 0 / 0.5529 GB, free: 8.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.392, allocations: 1.188 kB / 0.5529 GB, free: 8.234 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001799/0.3938, allocations: 0.8814 MB / 0.5538 GB, free: 7.566 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3939, allocations: 13.11 kB / 0.5538 GB, free: 7.562 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.394, allocations: 92.27 kB / 0.5539 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.3941, allocations: 73.03 kB / 0.5539 GB, free: 7.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.3952, allocations: 0.4942 MB / 0.5544 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.3952, allocations: 40.62 kB / 0.5544 GB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.3953, allocations: 53.2 kB / 0.5545 GB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.3964, allocations: 0.6276 MB / 0.5551 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.3964, allocations: 1.344 kB / 0.5551 GB, free: 6.613 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.009e-05/0.3965, allocations: 25.55 kB / 0.5551 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/0.3966, allocations: 33.12 kB / 0.5552 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008588/0.3975, allocations: 0.5028 MB / 0.5557 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003388/0.4009, allocations: 2.073 MB / 0.5577 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008919/0.4018, allocations: 463.2 kB / 0.5581 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006768/0.4024, allocations: 326.8 kB / 0.5584 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.4025, allocations: 7.953 kB / 0.5584 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.4025, allocations: 46.44 kB / 0.5585 GB, free: 3.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.984e-06/0.4025, allocations: 0 / 0.5585 GB, free: 3.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003496/0.406, allocations: 1.596 MB / 0.56 GB, free: 1.473 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.4061, allocations: 89.11 kB / 0.5601 GB, free: 1.367 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004963/0.4066, allocations: 425.8 kB / 0.5605 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.4066, allocations: 33.7 kB / 0.5606 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.4068, allocations: 301 kB / 0.5609 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.407, allocations: 174.5 kB / 0.561 GB, free: 440 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.4071, allocations: 102.4 kB / 0.5611 GB, free: 332 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.4073, allocations: 358.8 kB / 0.5615 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.4077, allocations: 185.2 kB / 0.5616 GB, free: 15.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004107/0.4081, allocations: 308.5 kB / 0.5619 GB, free: 15.43 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/0.4108, allocations: 1.161 MB / 0.5631 GB, free: 14.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.4108, allocations: 4 kB / 0.5631 GB, free: 14.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001232/0.412, allocations: 0.7033 MB / 0.5638 GB, free: 13.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.412, allocations: 8 kB / 0.5638 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.412, allocations: 4 kB / 0.5638 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004046/0.4124, allocations: 136.8 kB / 0.5639 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004539/0.4129, allocations: 111.8 kB / 0.564 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00327/0.4161, allocations: 2.507 MB / 0.5665 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.4165, allocations: 24.03 kB / 0.5665 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/0.4165, allocations: 23.98 kB / 0.5665 GB, free: 10.58 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003295/0.4168, allocations: 225.7 kB / 0.5667 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.003e-05/0.4169, allocations: 55.61 kB / 0.5668 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.4181, allocations: 0.6464 MB / 0.5674 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.4181, allocations: 4 kB / 0.5674 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.4181, allocations: 7.984 kB / 0.5674 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4182, allocations: 3.938 kB / 0.5674 GB, free: 9.625 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.4204, allocations: 1.244 MB / 0.5686 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.4204, allocations: 0 / 0.5686 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000344/0.4208, allocations: 72.05 kB / 0.5687 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004055/0.4212, allocations: 152.8 kB / 0.5688 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.4212, allocations: 15.98 kB / 0.5689 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00301/0.4242, allocations: 2.5 MB / 0.5713 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4242, allocations: 0 / 0.5713 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.4258, allocations: 0.9848 MB / 0.5723 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.4259, allocations: 55.7 kB / 0.5723 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.78e-05/0.4259, allocations: 20.03 kB / 0.5723 GB, free: 4.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.4262, allocations: 19.92 kB / 0.5724 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.384e-05/0.4263, allocations: 39.88 kB / 0.5724 GB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.4263, allocations: 15.98 kB / 0.5724 GB, free: 4.289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003332/0.4266, allocations: 287.1 kB / 0.5727 GB, free: 4.012 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4266, allocations: 0 / 0.5727 GB, free: 4.012 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006488/0.4273, allocations: 144 kB / 0.5728 GB, free: 3.871 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * 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 (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001861/0.4291, allocations: 1.531 MB / 0.5743 GB, free: 2.293 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.4304, allocations: 0.6483 MB / 0.5749 GB, free: 1.629 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.4304, allocations: 0 / 0.5749 GB, free: 1.629 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007227/0.4311, allocations: 418.1 kB / 0.5753 GB, free: 1.207 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008013/0.4319, allocations: 134.6 kB / 0.5755 GB, free: 1.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007487/0.4394, allocations: 5.124 MB / 0.5805 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.4398, allocations: 329.3 kB / 0.5808 GB, free: 11.39 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003531/0.4401, allocations: 108.7 kB / 0.5809 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002886/0.4404, allocations: 199.4 kB / 0.5811 GB, free: 11.08 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4404, allocations: 0 / 0.5811 GB, free: 11.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06839/0.5088, allocations: 12.99 MB / 0.5938 GB, free: 14.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.34, allocations: 5.625 kB / 0.5938 GB, free: 14.32 MB / 446.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.261833239346743]